Include folder analysis in PHP,
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 ';
http://www.bkjia.com/PHPjc/1115249.html www.bkjia.com true http://www.bkjia.com/PHPjc/1115249.html techarticle Include folder analysis in PHP, include is a summary of many PHP files, usually placed in the outermost folder. PHP Header ("Content-type:text/html;charset=utf-8"); Set Word ...