Common functions, excel Common functions
Require () usage:
(1) If X is a built-in module, such as the format of require ('HTTP.
A. Return to this module
B. Do not continue execution
(2) If X starts with "./", "/", or.
A. Determine the absolute path of X based on the parent module of X.
B. Use X as a file and search for the following files in sequence. If one of them exists, the file will be returned and will not be executed.
C. Use X as the Directory and search for the following files in sequence. If one of them exists, the file will be returned and will not be executed.
(3) If X does not contain a path.
A. determine the possible installation directory of X based on the parent module of X.
B. Load X as a file name or directory name in each directory in sequence.
(4) throw "not found ".
_ DIR _ usage:
The magic constant that points to the directory where the PHP script is currently executed.
For example, __dir _ equals to '/www/website '.