note 23034 deleted from features.safe-mode by betz
| From: | betz@php.net | Date: | Thu, 13 Mar 2003 23:16:06 +0000 |
| Subject: | note 23034 deleted from features.safe-mode by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45244@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")