Page 1 of 1

locked files

Posted: Sat Apr 03, 2004 8:13 pm
by josh
My code creates soem files..

Code: Select all

mkdir("../$user"); 
//then to copy the index.php file use 
copy("common/client.php", "../$user/index.php"); 
// then data.txt
copy("common/data.txt", "../$user/data.txt");
then when i try to ftp the files it made it says 550 /public_html/path/to/file/CRXDQWHFA: permission denied ... i can only read the files... cant chmod them either, same message... the CRXDQWHFA of the URI what is it? I never named anything CRXDQWHFA seems as if its message from the server

Posted: Sat Apr 03, 2004 8:37 pm
by markl999
As the web server user (nobody, apache, www-data, etc) will own the file you could chmod it via php using chmod

Posted: Sat Apr 03, 2004 8:57 pm
by josh
thnx