mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
6195120882
commit
1a93d44811
1 changed files with 12 additions and 3 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue