Unable to copy/rename files...
Posted: Wed Mar 02, 2005 8:24 am
Although all permissions are set correctly (to 0777)...I still cannot copy files from source location to destination via copy() or rename() function:
however, i CAN rename files in the same directory...
is there any limitation in length of a pathname?
should I use relative or absolute paths ? (i guess that it doesnt work with paths like "../../dirA/dirB/" etc.)
I use the following structure:
i always get error message...
could someone help me,please?
however, i CAN rename files in the same directory...
is there any limitation in length of a pathname?
should I use relative or absolute paths ? (i guess that it doesnt work with paths like "../../dirA/dirB/" etc.)
I use the following structure:
Code: Select all
$source = '/httpd/html/dir1/dir2/dir3/upload/picture.jpg';
$dest = '/httpd/html/dirA/dirB/dirC/dirD/client/picture.jpg';
if (copy($source, $dest)) {....}
else { ... show error message ....}could someone help me,please?