<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>爱周末 &#187; max_execution_time</title>
	<atom:link href="http://zhoumo123.cn/tag/max_execution_time/feed" rel="self" type="application/rss+xml" />
	<link>http://zhoumo123.cn</link>
	<description>知识分享，共同进步。zhoumo123.cn</description>
	<lastBuildDate>Thu, 07 Nov 2019 05:53:49 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.1</generator>
	<item>
		<title>Fatal error Maximum execution time of 30 seconds exceeded in 解决办法</title>
		<link>http://zhoumo123.cn/php/3307.html</link>
		<comments>http://zhoumo123.cn/php/3307.html#comments</comments>
		<pubDate>Mon, 14 Sep 2015 03:08:15 +0000</pubDate>
		<dc:creator><![CDATA[zhangc]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[max_execution_time]]></category>

		<guid isPermaLink="false">http://zhoumo123.cn/?p=3307</guid>
		<description><![CDATA[php mysql 查询错误提示 ：Fatal error Maximum execution time of 30 seconds exceeded in &#8230; 的解决办法如下： 报错一：内存超限，具体报错语句忘了，简单说一下解决办法。 利用循环分批导入； 每个循环内部开始处使用sleep(5);语句，做延迟执行，防止服务器内存同一时间占用过多，里面数字据情况修改； 每个循环内部结束地方使用 ob_flush();刷新输出缓冲 flush();将当前为止程序的所有输出发送到用户的浏览器 两者必须同时使用来刷新输出缓冲 报错二：30秒运行超时的错误（Maximum execution ...  <a href="http://zhoumo123.cn/php/3307.html">  阅读全文 </a>]]></description>
				<content:encoded><![CDATA[<p>php mysql 查询错误提示 ：Fatal error Maximum execution time of 30 seconds exceeded in &#8230; 的解决办法如下：</p>
<p><strong>报错一：内存超限，具体报错语句忘了，简单说一下解决办法。</strong></p>
<p>利用循环分批导入；<br />
每个循环内部开始处使用sleep(5);语句，做延迟执行，防止服务器内存同一时间占用过多，里面数字据情况修改；<br />
每个循环内部结束地方使用 ob_flush();刷新输出缓冲<br />
flush();将当前为止程序的所有输出发送到用户的浏览器<br />
两者必须同时使用来刷新输出缓冲</p>
<p><strong>报错二：30秒运行超时的错误（Maximum execution time of 30 seconds exceeded）</strong><br />
解决办法：<br />
<strong>方法一，修改php.ini文件</strong><br />
max_execution_time = 30; Maximum execution time of each script, in seconds<br />
把它设置成需要的值就可以了。如果设置成0的话，就是永不过期。</p>
<p><strong>方法二，修改php执行文件</strong><br />
加上<br />
&lt;?<br />
set_time_limit(0);<br />
?&gt;</p>
<p>max_execution_time = 30; Maximum execution time of each script, in seconds<br />
把它设置成需要的值就可以了。如果设置成0的话，就是永不过期。</p>
<p>http://www.oschina.net/code/snippet_262017_19330</p>
]]></content:encoded>
			<wfw:commentRss>http://zhoumo123.cn/php/3307.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
