3 Star 11 Fork 9

mz / php_mzdns

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
Clone or download
index.php 783 Bytes
Copy Edit Web IDE Raw Blame History
mz authored 2015-02-16 17:26 . init project
<?php
define('DEBUG', ((isset($argc) && $argc) || strstr($_SERVER['REQUEST_URI'], 'debug')) ? 1:1);
// 站点根目录,在单元测试时候,此文件可能被包含
define('ROOT_PATH', str_replace('\\', '/', dirname(__FILE__)).'/');
if(!($conf = include(ROOT_PATH.'conf/conf.php'))) {
exit('config file not exists');
}
// 框架的物理路径
define('FRAMEWORK_PATH', ROOT_PATH.'../mzphp/');
// 临时目录
define('FRAMEWORK_TMP_PATH', $conf['tmp_path']);
// 日志目录
define('FRAMEWORK_LOG_PATH', $conf['log_path']);
//扩展核心目录(该目录文件会一起打包入runtime.php文件中)
define('FRAMEWORK_EXTEND_PATH', ROOT_PATH.'lib/');
// 包含核心框架文件,转交给框架进行处理。
include FRAMEWORK_PATH.'mzphp.php';
core::run($conf);
?>

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/mz/php_mzdns.git
git@git.oschina.net:mz/php_mzdns.git
mz
php_mzdns
php_mzdns
master

Search