note 23034 added to features.safe-mode
| From: | rene at webscorpion dot com | Date: | Sun, 07 Jul 2002 16:51:12 +0000 |
| Subject: | note 23034 added to features.safe-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32710@lists.php.net to get a copy of this message | ||
phobo@paradise.net.nz wrote in his comment of 02-Oct-2001 07:21: "By placeing a base_dir for
each virutal host, this means PHP CANNOT access files below this heirachy"
"below" or "above" is obviously a matter of visualization. The way I understand
open_basedir is if you add an open_basedir clause as in the example provided, php is ONLY able to
access files under the /var/www/html/safephphost/ directory. In other words php will not be able to
access /var/www/html/anotherfile but will be able to access /var/www/html/safephphost/somefile.
Also - if I understand correctly you do not need "safe_mode on" when you have an
open_basedir clause. (ref: http://www.php.net/manual/en/features.safe-mode.php:
"If instead of safe_mode, you set an open_basedir directory then all file operations will be
limited to files under the specified directory")
--
http://www.php.net/manual/en/features.safe-mode.php
http://master.php.net/manage/user-notes.php?action=edit+23034
http://master.php.net/manage/user-notes.php?action=delete+23034
http://master.php.net/manage/user-notes.php?action=reject+23034