diff --git a/language/control-structures.xml b/language/control-structures.xml index e733a80b2d..09874a47ec 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1237,6 +1237,15 @@ require ('somefile.txt'); a missing file to halt processing of the page. include does not behave this way, the script will continue regardless. Be sure to have an appropriate include_path setting as well. + Be warned that parse error in required file doesn't cause processing halting. + + + 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 ., current working directory is /www/, + you included include/a.php and there is include "b.php" + in that file, b.php is first looked in /www/ + and then in /www/include/. When a file is included, the code it contains inherits the