<?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[$_SERVER[REQUEST_TIME]好还是time好呢？]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 04 Mar 2009 04:03:21 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	脱了裤子放屁代码：<br/><br/><div class="code">&lt;?php<br/>$time = $_SERVER&#91;&#039;REQUEST_TIME&#039;&#93;;<br/>echo $time = date(&#039;Y-m-d H:i:s&#039;,$time);<br/>?&gt;</div><br/><br/>PHP中函数int time ( void )返回自从 Unix 纪元（格林威治时间 1970 年 1 月 1 日 00:00:00）到当前时间的秒数。自 PHP 5.1 起在 $_SERVER[&#039;REQUEST_TIME&#039;] 中保存了发起该请求时刻的时间戳。 计算差之前，需要利用函数mktime把参数转化为整数，函数格式为：int mktime ( [int hour [, int minute [, int second [, int month [, int day [, int year [, int is_dst]]]]]]] )，功能是根据给出的参数返回 Unix 时间戳。时间戳是一个长整数，包含了从 Unix 纪元（January 1 1970 00:00:00 GMT）到给定时间的秒数。参数可以从右向左省略，任何省略的参数会被设置成本地日期和时间的当前值。<br/><br/>如果你的日期是来源于数据库的字段，那么查询语句里面可以直接查询数据库服务器的当前日期，甚至把时间差一起计算出来，PHP无须编写程序，直接象使用普通字段变量一样使用。<br/><br/>【转】提高PHP性能的12条忠告 ：<br/>http://mosee.blogbus.com/logs/23319825.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] $_SERVER[REQUEST_TIME]好还是time好呢？]]></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>