I've tried a number of variations on the copy and move file function but nothing seems to make my files move.
This is the simplest version of the code for just copying:
<?PHP
$folder = "../tempimages/";
$file = $GLOBALS['HTTP_GET_VARS']['jpeg_fname']; // filename.jpg
$filename = $folder.$file;
$targetfolder = "../jobs/";
$target = $targetfolder.$file;
copy ($filename, $target); //copy file
?>
The file has been uploaded by FTP.
I've checked with the server and there doesn't seem to be any restrictions on file moving. I've also tried around 10 different versions of this script from various websites but so far I haven't been able to get a file copied or moved.
Am I missing something obvious?
Any help would be great thanks.
Mike






Bookmarks