vrana           Mon Feb  9 07:33:20 2004 EDT

  Modified files:              
    /phpdoc/en/language control-structures.xml 
  Log:
  Where included files are looking for
  # check my English please
  
http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.86&r2=1.87&ty=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.86 
phpdoc/en/language/control-structures.xml:1.87
--- phpdoc/en/language/control-structures.xml:1.86      Wed Jan 28 19:35:24 2004
+++ phpdoc/en/language/control-structures.xml   Mon Feb  9 07:33:20 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.86 $ -->
+<!-- $Revision: 1.87 $ -->
  <chapter id="control-structures">
   <title>Control Structures</title>
 
@@ -1237,6 +1237,15 @@
      a missing file to halt processing of the page.  <function>include</function> 
does 
      not behave this way, the script will continue regardless.  Be sure to have an 
      appropriate <link linkend="ini.include-path">include_path</link> setting as well.
+     Be warned that parse error in required file doesn't cause processing halting.
+   </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>,
+    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>.
    </simpara>
    <simpara>
      When a file is included, the code it contains inherits the

Reply via email to