Added note that $_SERVER['SCRIPT_FILENAME'] is relative in certain CLI cases.

Bug 26429.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147654 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ken 2004-01-01 23:00:27 +00:00
parent 6195120882
commit 1a93d44811

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.36 $ -->
<!-- $Revision: 1.37 $ -->
<appendix id="reserved">
<title>List of Reserved Words</title>
@ -528,9 +528,18 @@
<varlistentry>
<term>'<varname>SCRIPT_FILENAME</varname>'</term>
<listitem>
<simpara>
<para>
The absolute pathname of the currently executing script.
</simpara>
<note>
<para>
If a script is executed with the CLI, as a relative path,
such as <filename>file.php</filename> or
<filename>../file.php</filename>,
<varname>$_SERVER['SCRIPT_FILENAME']</varname> will
contain the relative path specified by the user.
</para>
</note>
</para>
</listitem>
</varlistentry>