Quote:
|
Originally Posted by tsb
The server's linux, can someone just explain why it isn't working, or if it doesn't work on a linux server, then what will? I can chmod folders using php fine, just not files.
|
My guess.. PHP runs as user nobody, and the files you're trying to chmod are owned by your username.. if 'nobody' tries to chmod files owned by 'jsmith' then they'll get an error coz it's not allowed..
Try chmodding the existing files from your FTP client, then try creating some small text files with PHP and chmodding them with the script.. If both these work then it's almost certainly the above problem..