<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[php如何动态改变脚本的执行时间，解决超时问题]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Tue, 12 Sep 2006 00:04:37 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	在 &nbsp;php &nbsp;的配置/信息里面有一个设置脚本执行时间的函数，具体情况如下：<br/><br/>set_time_limit<br/><br/>配置该页最久执行时间。<br/><br/>语法: &nbsp;void &nbsp;set_time_limit(int &nbsp;seconds);<br/><br/>返回值: &nbsp;无<br/><br/>函数种类: &nbsp;PHP &nbsp;系统功能<br/><br/>内容说明 &nbsp;<br/><br/>本函数用来配置该页最久执行时间。默认值是 &nbsp;30 &nbsp;秒，在 &nbsp;php.ini &nbsp;中的 &nbsp;max_execution_time &nbsp;变量配置，若配置为 &nbsp;0 &nbsp;则不限定最久时间。当执行到该函数时，才开始计算。例如，若默认是 &nbsp;30 &nbsp;秒，而在执行到该函数前已执行了 &nbsp;25 &nbsp;秒，而用本函数改为 &nbsp;20 &nbsp;秒，则该页面最长执行时间为 &nbsp;45 &nbsp;秒。<br/><br/>使用实例：<br/><br/>我的文章搜索函数由于文章数目的增加，经常会产生超时错误，我把脚本执行时间改为200秒后情况大大缓解！<br/><br/><?<br/><br/>set_time_limit(200);<br/><br/>?><br/><br/><br/><br/>这样就可以了！ <br/><br/>php.ini中<br/>safe_mode = Off<br/>max_execution_time = 30 <br/><br/>在安全模式下是无法进行超时的！<br/>Tags - <a href="http://www.dzhope.com/tags/%25E8%2584%259A%25E6%259C%25AC%25E8%25B6%2585%25E6%2597%25B6/" rel="tag">脚本超时</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] php如何动态改变脚本的执行时间，解决超时问题]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>