File permissions mystery
Posted 15 July 2006 - 01:44 PM
Warning: chmod(): Operation not permitted in...
I don't understand why the error messages are being generated if the script works.
Posted 15 July 2006 - 01:48 PM
You should aware that PHP run under user permission, so, since user can not change the file permission, php can't either.
Posted 15 July 2006 - 01:57 PM
Posted 15 July 2006 - 02:10 PM
Normally, I'd set the permission for destination folder to world writable. Of course, no change need to make to source folder.
So, that'd left you with 2 choices, should you set it to writable, or set it to writable, move the file, then set it back to readonly.
easy choice would be set the folder to writable.
the second choice need a little more work. The idea is using php to create a connection to your ftp server using your username and password. With this, you gain full access to your site, and you can change the destination folder to writable, move the file, then change back to readonly.
I have worked on similar problem, and as far as I've known, there is no other way unless you have control over PHP installation.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users