note 85149 added to function.move-uploaded-file

From: Date: Sun, 17 Aug 2008 21:02:02 +0000
Subject: note 85149 added to function.move-uploaded-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-143573@lists.php.net to get a copy of this message
move_uploaded_file (on my setup) always makes files 0600 ("rw- --- ---") and owned by the user running the webserver (owner AND group). Even though the directory has a sticky bit set to the group permissions! I couldn't find any settings to change this via php.ini or even using "umask()". I want my regular user on the server to be able to "tar cjf" the directory .. which would fail on files totally owned by the webserver-process-user; the "copy(from, to)" function obeys the sticky-bit though! ---- Server IP: 217.160.72.57 Probable Submitter: 80.171.18.54 ---- Manual Page -- http://www.php.net/manual/en/function.move-uploaded-file.php Edit -- https://master.php.net/note/edit/85149 Del: integrated -- https://master.php.net/note/delete/85149/integrated Del: useless -- https://master.php.net/note/delete/85149/useless Del: bad code -- https://master.php.net/note/delete/85149/bad+code Del: spam -- https://master.php.net/note/delete/85149/spam Del: non-english -- https://master.php.net/note/delete/85149/non-english Del: in docs -- https://master.php.net/note/delete/85149/in+docs Del: other reasons-- https://master.php.net/note/delete/85149 Reject -- https://master.php.net/note/reject/85149 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143573) next »