【发布时间】:2012-03-06 00:14:52
【问题描述】:
如何使用 PHP 移动文件?
代码:
if( file_exists($imageLocation) )
echo "file exists on server";
rename($imageLocation, $imageNewLocation);
输出:
文件存在于服务器上 警告:rename(/home/images/file1.jpg,/home/newloc/renamed.jpg) [function.rename]: No such file or directory in /home/apps/images/add.php on line 81
我不知道从这里去哪里。
【问题讨论】: