首页 > Web开发 > 详细

php 打印debug日志

时间:2016-04-05 19:41:07      阅读:232      评论:0      收藏:0      [点我收藏+]

A lesser known trick is that mod_php maps stderr to the Apache log. And, there is a stream for that,

so file_put_contents(‘php://stderr‘, print_r($foo, TRUE)); will nicely dump the value of $foo into the Apache error log.

 

转自: http://stackoverflow.com/questions/6079492/how-to-print-a-debug-log

php 打印debug日志

原文:http://www.cnblogs.com/pinganzi/p/5356136.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!