Any file copied with PHP will stay writable from PHP, as the owner is set to whatever 
PHP is running under.

Explain how the file got there and how you'd like to change it (through PHP, FTP etc.)


>Hi Edgard,
>> I'm trying to copy a file and chmod it to make it writable, but after I copy
>> it using PHP I can't even chmod in ftp !
>since you upload it using PHP, most likely the owner of the file is
>nobody.nobody, that's why you can't chmod thru ftp. (unless you login
>to ftp as nobody ;))
>> I can't change the file owner too.
>only root can chown
>You need root access to fix your problem...or re-upload your file using
>ftp, not php.

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to