hi ,
how can i change the Persmission of a Folder using php ?
using chmod returns this error :
chmod(): Operation not permitted
thanks
hi ,
how can i change the Persmission of a Folder using php ?
using chmod returns this error :
chmod(): Operation not permitted
thanks
This is true, because if suexec (phpsuexec) is not installed, the user that runs chmod is NOBODY (usually on unix servers) and nobody doesn't usually have the authority to do that..
A few notes from http://us4.php.net/manual/en/function.chmod.php
Just a few things to think about..Note: The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access.
Note: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.
Note: When safe mode is enabled, PHP checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. In addition, you cannot set the SUID, SGID and sticky bits