mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
include(../) searches only from current dir (bug #30881)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@173536 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5824a11e7d
commit
c18a0025fb
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.110 $ -->
|
||||
<!-- $Revision: 1.111 $ -->
|
||||
<chapter id="language.control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -1290,6 +1290,8 @@ require ('somefile.txt');
|
|||
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>
|
||||
and then in <filename class="directory">/www/include/</filename>.
|
||||
If filename begins with <literal>../</literal>, it is looked only in
|
||||
include_path relative to the current working directory.
|
||||
</simpara>
|
||||
<simpara>
|
||||
When a file is included, the code it contains inherits the
|
||||
|
|
Loading…
Reference in a new issue