note 78413 added to function.chmod

From: Date: Thu, 11 Oct 2007 03:03:01 +0000
Subject: note 78413 added to function.chmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-131291@lists.php.net to get a copy of this message
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 -- https://master.php.net/note/delete/78413/integrated Del: useless -- https://master.php.net/note/delete/78413/useless Del: bad code -- https://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 -- https://master.php.net/note/delete/78413/in+docs Del: other reasons-- https://master.php.net/note/delete/78413 Reject -- https://master.php.net/note/reject/78413 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131291) next »