locked files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

locked files

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

As the web server user (nobody, apache, www-data, etc) will own the file you could chmod it via php using chmod
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

thnx
Post Reply