Include is a summary of many PHP files, usually placed in the outermost part of the folder.
Header ("Content-type:text/html;charset=utf-8"); // Set character date_default_timezone_set ("PRC"); // set the time zone for China Session_Start (); // Global Open Session Define ("ROOT",dirname(__file__)); // __file__ is the absolute full path of the current file; DirName () Gets the absolute path portion of the current file path . Set_include_path (".". Path_separator. ROOT. " /lib ". Path_separator. ROOT. " /core ". Path_separator. ROOT. " /configs ". Path_separator. Get_include_path ()); // Set_include_path () is the path to set the include file require_once ' mysql.func.php '; require_once ' image.func.php ';
The above describes the inclusion folder analysis in PHP, including the content, I hope that the PHP tutorial interested in a friend helpful.