Often when the PHP page in the use of include, require, require_once contains some other locations of the page, there will be errors, such as no time to find the page, or permissions are not allowed, can be excluded according to the following methods
1. When an error like "File not Found" appears, check that the include file is in the correct location, referring to the following quote from the PHP manual page:
Files for including is first looked in include_path relative to the current working directory and then in the directory O f the current script. e.g. if your include_path is libraries, current working directory is/www/, you included include/a.php and there are includ E "b.php" in this file, b.php is first looked in/www/libraries/and then in/www/include/. If filename begins with./or. /, it is looked only in include_path relative to the current working directory.
2. When a permission deny similar error occurs, the following method is used to exclude
A) detect if the included file Read permission is open
b) detects if the X permission on each directory on the included file path is open, which determines whether the directory can be browsed.