码迷,mamicode.com
首页 > Web开发 > 详细

php 打印debug日志

时间:2016-04-05 19:41:43      阅读:170      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!