hello there.
bit stuck. I'm trying to move files about after they been processed. Everything works fine except for moving or deleting them after i've made a copy.
I can't even change the chmod!
copy($_SERVER['DOCUMENT_ROOT']."/media/ftpfiles/".$fileName, $newVars['path'].$safeFilename.".".$ext);
copy works fine but the below doesn't at all! The owner of the ftp files is helloandcompany but the files created by copying are owned by apache...
chmod($_SERVER['DOCUMENT_ROOT']."/media/ftpfiles/".$fileName, 0777);
rename($_SERVER['DOCUMENT_ROOT']."/media/ftpfiles/".$fileName, $_SERVER['DOCUMENT_ROOT']."/media/usedftp/".$safeFilename.".".$ext);
any help appreciated!