When include, require, and require_once are used in php pages to contain pages in other locations, errors may occur, such as page not found or permission not allowed, you can use the following methods to exclude 1. when an error similar to "file not found" occurs, check whether the location of the include file is correct.
When include, require, and require_once are used in php pages to contain pages in other locations, errors may occur, such as page not found or permission not allowed, you can use the following methods to exclude 1. when an error similar to "file not found" occurs, check whether the location of the include file is correct.
When include, require, and require_once are used in php pages to contain pages in other locations, errors may occur, such as page not found or permission not allowed, you can use the following methods to exclude
1. When an error similar to "file not found" occurs, check whether the location of the include file is correct. The following is the reference on the php manual page:
Files for including are first looked in your de_path relative to the current working directory and then in the directory of the current script. e. g. if your include_path is libraries, current working directory is/www/, you have ded include/. php and there is include "B. php "in that file, B. php is first looked in/www/libraries/and then in/www/include /. if filename begins. /or/, it is looked only in your de_path relative to the current working directory.
2. When an error similar to permission deny occurs, follow these steps:
A) checks whether the read permission of the included files is enabled.
B) Check whether the x permission of each directory on the included file path is enabled. This permission determines whether the directory can be browsed.