这篇文章主要为大家详细介绍了php初始化代码文件init.简单示例,具有一定的参考价值,可以用来参考一下。
对php初始化代码文件init.简单示例感兴趣的小伙伴,下面一起跟随四海网的小编巴闭妹来看看吧!
/**
*
* @param
* @arrange (512.笔记) www.q1010.com
**/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
define(ROOTDIR, dirname(dirname(__FILE__)) . "/");
define(LOG_PATH, ROOTDIR . "/log/");
define(IS_DEBUG, true);
$GLOBALS['_CFG']['smarty_template_dir'] = 'view';
$GLOBALS['_CFG']['smarty_cache_dir'] = 'cache';
$GLOBALS['_CFG']['smarty_compile_dir'] = 'compile_c';
$GLOBALS['_CFG']['lib_cls_path'] = array("lib/", "lib/3rd/", "lib/3rd/Smarty/", "lib/common/");
$GLOBALS['_CFG']['app_cls_path'] = array("app/", "app/include/");
$GLOBALS['_CFG']['upload_img_dir'] = 'upload/images';
$GLOBALS['_CFG']['index_dir'] = '';
$GLOBALS['_CFG']['IS_WIN_OS'] = (strcmp(PHP_OS, 'WINNT') == 0 || strcmp(PHP_OS, 'WIN32') == 0);
if (file_exists(ROOTDIR . 'conf/db_conf.php'))
include_once ROOTDIR . 'conf/db_conf.php';
include_once ROOTDIR . 'lib/functions/functions.php';
init();
本文来自:http://www.q1010.com/173/11057-0.html
注:关于php初始化代码文件init.简单示例的内容就先介绍到这里,更多相关文章的可以留意四海网的其他信息。
关键词:
四海网收集整理一些常用的php代码,JS代码,数据库mysql等技术文章。