mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #41486 (include_path not used for the script's dir)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@236434 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b3d0ca982a
commit
a1fc861360
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.138 $ -->
|
||||
<!-- $Revision: 1.139 $ -->
|
||||
<chapter id="language.control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -1302,10 +1302,10 @@ require ('somefile.txt');
|
|||
</simpara>
|
||||
<simpara>
|
||||
Files for including are first looked in include_path relative to the current working directory
|
||||
and then in include_path relative to the directory of current script. E.g. if your include_path
|
||||
is <literal>.</literal>, current working directory is <filename class="directory">/www/</filename>,
|
||||
and then in the directory of the current script. E.g. if your include_path
|
||||
is <literal>libraries</literal>, current working directory is <filename class="directory">/www/</filename>,
|
||||
you included <filename>include/a.php</filename> and there is <literal>include "b.php"</literal>
|
||||
in that file, <filename>b.php</filename> is first looked in <filename class="directory">/www/</filename>
|
||||
in that file, <filename>b.php</filename> is first looked in <filename class="directory">/www/libraries/</filename>
|
||||
and then in <filename class="directory">/www/include/</filename>.
|
||||
If filename begins with <literal>./</literal> or <literal>../</literal>, it
|
||||
is looked only in include_path relative to the current working directory.
|
||||
|
|
Loading…
Reference in a new issue