Reply to Move File Path?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация