Hello,
I'm trying to move a file from one dir to another dir. When I move a single file from directory "X" into directory "Y", it does not copy. But it updates into the db perfectly. Then, when I moved the file from dir "Y" into dir "X", it actually copy over into dir "Y".
I need help please. Here are the codes:
PHP Code:
readdir(opendir($row['dir']));
copy($row['path'] . "/" . $row['file'], $row['newpath'] . "/" . $row['file'])
closedir(opendir($row['dir']));
I only need one file from the current directory move to a new diretory.
Thanks,
Samot