<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[PHP error_log的使用]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 15 Oct 2010 09:57:57 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	php中需要查看错误log,如何设置？<br/>&nbsp;&nbsp;&nbsp;&nbsp;首先需要在php.ini打开开关和制定错误log路径<br/>&nbsp;&nbsp;&nbsp;&nbsp;log_errors = On<br/>&nbsp;&nbsp;&nbsp;&nbsp;error_log = d://phperror.log&nbsp;&nbsp; //windows下的设置<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;如果是在linux 下，使用lighttpd服务器，则可以使用如下方式查看log文件<br/>&nbsp;&nbsp;&nbsp;&nbsp;tail -n 20 /usr/local/lighttpd/log/php-error.log<br/> <br/>&nbsp;&nbsp;&nbsp;&nbsp;在php代码中如何记录log,在PHP官方文档中有个函数error_log(),使用方法如下：<br/> <br/>&nbsp;&nbsp;定义和用法<br/>&nbsp;&nbsp;&nbsp;&nbsp;error_log() 函数向服务器错误记录、文件或远程目标发送一个错误。<br/>&nbsp;&nbsp; 若成功，返回 true，否则返回 false。<br/>&nbsp;&nbsp; 语法<br/>&nbsp;&nbsp; error_log(error,type,destination,headers)<br/>______________________________________________________________<br/>ini_set(&quot;error_log&quot;, &quot;F:/wwwroot/7751/logs/php_error.log&quot;);<br/>error_log(&quot;index.php exec...&quot;, 0);<br/>如果要打印出sql，则相应的query方法里加上error_log($sql,0);即可<br/>error_log是要系统权限的，safe_mode下不能使用。
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP error_log的使用]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>