Include,require is often used in PHP to refer to other files, using relative paths or absolute paths, if the Set_include_path function or Ini_set (' include_path ', XXX) is set Include_ Path configuration option, the Require file can also be referenced directly in other directories.
Set Include_path configuration options
such as: require_once "class.smarttemplate.php", this file is not in fact the current file directory, but also can be directly referenced. Because the front is set by the Ini_set include_path:
Php
Include configuration file and function library path
Ini_set (' include_path ', include_path. Ds. "Library". Path_separator. Ini_get (' include_path '));
Set_include_path function
The Set_include_path function is the same as the Ini_set (' Include_pah ', XXX), except that the Ini_set way is suitable for all PHP versions, and there is no difference between them now.