note 21085 added to features.safe-mode
| From: | zebz at ihaveenoughspam_hotmail dot com | Date: | Sun, 28 Apr 2002 12:42:26 +0000 |
| Subject: | note 21085 added to features.safe-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29943@lists.php.net to get a copy of this message | ||
All the filesystem-related functions (unlink, fopen, unlink, etc) seems to be restricted the same
way in safe mode, at least on PHP 4.2. If the file UID is different *but* the directory (where the
file is located) UID is the same, it will work.
So creating a directory in safe mode is usually a bad idea since the UID will be different from the
script (it will be the apache UID) so it won't be possible to do anything with the files
created on this directory.
--
http://www.php.net/manual/en/features.safe-mode.php
http://master.php.net/manage/user-notes.php?action=edit+21085
http://master.php.net/manage/user-notes.php?action=delete+21085
http://master.php.net/manage/user-notes.php?action=reject+21085