从网上下载了一套php程序,调试的时候没有输出任何错误信息(页面空白),导致无法排错。
环境:IIS 7.5
这是他的入口文件
<?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();
从网上下载了一套php程序,调试的时候没有输出任何错误信息(页面空白),导致无法排错。
环境:IIS 7.5
这是他的入口文件
<?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();
确保php.ini
中的display_errors = On
或者在入口文件的顶部加上:
ini_set("display_errors","On");//开启错误显示
error_reporting(E_ALL);//显示所有错误
当然确保在之后的文件中没有将display_errors设置为Off
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号