Added a couple links to ini.safe-mode

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@57740 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2001-09-18 17:42:44 +00:00
parent 61117464cc
commit 296edcbd18

View file

@ -1,5 +1,5 @@
<?xml encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<!-- $Revision: 1.12 $ -->
<chapter id="features.safe-mode">
<title>Safe Mode</title>
@ -21,9 +21,9 @@ disable_functions =
</programlisting>
</para>
<para>
When safe_mode is on, PHP checks to see if the owner of the current script
matches the owner of the file to be operated on by a file function. For
example:
When <link linkend="ini.safe-mode">safe_mode</link> is on, PHP checks to see
if the owner of the current script matches the owner of the file to be
operated on by a file function. For example:
<programlisting role="ls">
-rw-rw-r-- 1 rasmus rasmus 33 Jul 1 19:20 script.php
-rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd
@ -41,9 +41,9 @@ allowed to access /etc/passwd owned by uid 0 in /docroot/script.php on line 2
</programlisting>
</para>
<para>
If instead of safe_mode, you set an open_basedir directory then all file
operations will be limited to files under the specified directory. For
example (Apache httpd.conf example):
If instead of <link linkend="ini.safe-mode">safe_mode</link>, you set an
open_basedir directory then all file operations will be limited to files
under the specified directory. For example (Apache httpd.conf example):
<programlisting role="ini">
&lt;Directory /docroot&gt;
php_admin_value open_basedir /docroot