Posted by Barkster on 11/18/35 11:43
I'm trying to move some files on my server but I cannot get the path
right. I've messed with this and can't get it right. Is there a way
to debug the path of a file on the server? Here is what I'm trying to
do. I have a upload.php file in root/beta/upload/upload.php and want
to move a file in the root to root/beta/files but I get error below.
What am I missing?
$file = 'After.jpg';
$newfile = '/beta/files/TestMe.jpg';
if (!copy($file, $newfile)) {
print "failed to copy $file...\n";
}
Warning: copy(After.jpg): failed to open stream: No such file or
directory in
/hsphere/local/home/barkster/zipyard.com/beta/ThinUpload/TestUpload.php
on line 5
failed to copy After.jpg...
[Back to original message]
|