note 68855 added to function.mkdir
| From: | PHGN at osu1 dot php dot net | Date: | Sun, 13 Aug 2006 18:13:52 +0000 |
| Subject: | note 68855 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115866@lists.php.net to get a copy of this message | ||
I've been wrestling with mkdir on a server with safe mode turned on (I think, I kept getting
barmy permissions on the new dirs).
In the end the solution was to use:
exec (mkdir ...
exec (chmod ...
For this to work I had to use the setuid bit on the script itself. I tried this with the mkdir()
function, but to no avail. (To do the setuid bit I ran chmod 4775 on the script file from the
command line.)
----
Server IP: 83.138.144.80
Probable Submitter: 86.141.125.108
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.mkdir.php
Edit -- https://master.php.net/note/edit/68855
Del: integrated -- https://master.php.net/note/delete/68855/integrated
Del: useless -- https://master.php.net/note/delete/68855/useless
Del: bad code -- https://master.php.net/note/delete/68855/bad+code
Del: spam -- https://master.php.net/note/delete/68855/spam
Del: non-english -- https://master.php.net/note/delete/68855/non-english
Del: in docs -- https://master.php.net/note/delete/68855/in+docs
Del: other reasons-- https://master.php.net/note/delete/68855
Reject -- https://master.php.net/note/reject/68855
Search -- https://master.php.net/manage/user-notes.php