从网上下载了一套php程序,调试的时候没有输出任何错误信息(页面空白),导致无法排错。
环境:IIS 7.5
这是他的入口文件
<code><?php include './core/config/common.conf.php'; include './core/config/routes.conf.php'; include './core/config/app.conf.php'; include $config['BASE_PATH'].'deployment/deploy.php'; //include $config['BASE_PATH'] . 'Doo.php'; //include $config['BASE_PATH'] . 'app/DooConfig.php'; Doo::conf()->set($config); Doo::db()->setDb($dbconfig, $config['APP_MODE']); Doo::app()->route = $route; Doo::app()->run(); </code>
从网上下载了一套php程序,调试的时候没有输出任何错误信息(页面空白),导致无法排错。
环境:IIS 7.5
这是他的入口文件
<code><?php include './core/config/common.conf.php'; include './core/config/routes.conf.php'; include './core/config/app.conf.php'; include $config['BASE_PATH'].'deployment/deploy.php'; //include $config['BASE_PATH'] . 'Doo.php'; //include $config['BASE_PATH'] . 'app/DooConfig.php'; Doo::conf()->set($config); Doo::db()->setDb($dbconfig, $config['APP_MODE']); Doo::app()->route = $route; Doo::app()->run(); </code>
确保php.ini
中的display_errors = On
或者在入口文件的顶部加上:
<code>ini_set("display_errors","On");//开启错误显示 error_reporting(E_ALL);//显示所有错误 </code>
当然确保在之后的文件中没有将display_errors
设置为Off