From 5b8143ed9e6065f89ddf7b4827cad1868a1d6ce3 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 9 Feb 2004 12:33:20 +0000 Subject: [PATCH] Where included files are looking for # check my English please git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150852 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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