Problem:
you are trying to circumvent SAFE_MODE setting that prevents
you from using chmod() on files you uploaded via a regular
ftp client, because php may run as user 'nobody', which is
not the user from your ftp session.
using ini_set() won't work
using ftp_chmod() won't work either
Solution:
copy file to some temorary directory.
delete original file altogether.
copy temporary file back to original location.
do the chmod()
----
Server IP: 69.147.83.197
Probable Submitter: 69.28.122.34
----
Manual Page -- http:
//www.php.net/manual/en/function.chmod.php
Edit -- https://master
.php.net/note/edit/78413
Del: integrated -- h
ttps://master.php.net/note/delete/78413/integrated
Del: useless -- http
s://master.php.net/note/delete/78413/useless
Del: bad code -- htt
ps://master.php.net/note/delete/78413/bad+code
Del: spam -- https:/
/master.php.net/note/delete/78413/spam
Del: non-english --
https://master.php.net/note/delete/78413/non-english
Del: in docs -- http
s://master.php.net/note/delete/78413/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78413
Reject -- https://mast
er.php.net/note/reject/78413
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|