For example if my PHP script throws an error I want it to print to the browser. I am on a linux box Debian 5.0
2条回答 默认 最新
- dragon188199 2011-09-13 16:42关注
Put this that the top of your php file:
//*DEBUG ERROR REPORTING ini_set('display_errors', 1); ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); error_reporting(E_ALL); //END DEBUG ERROR REPORTING*/
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报