网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 49.87.51.253
Old 2015-12-13, 10:59 PM
Napakiak Napakiak is offline
初级会员
 
Join Date: 2013-06-11
Posts: 1
Napakiak 现在声名狼藉
Default Maximum execution time of 30 seconds exceeded解决办法

今天给朋友配置wamp的时候,刚刚搭建好,打开一个本地站就出现这个错误,
Maximum execution time of 30 seconds exceeded,今天把这个错误的解决方案总结一下:
简单总结一下解决办法:
报错一:内存超限,具体报错语句忘了,简单说一下解决办法。
利用循环分批导入;
每个循环内部开始处使用sleep(5);语句,做延迟执行,防止服务器内存同一时间占用过多,里面数字据情况修改;
每个循环内部结束地方使用 ob_flush();刷新输出缓冲
flush();将当前为止程序的所有输出发送到用户的浏览器
两者必须同时使用来刷新输出缓冲
报错二:30秒运行超时的错误(Maximum execution time of 30 seconds exceeded)
解决办法:
方法一,修改php.ini文件
max_execution_time = 30; Maximum execution time of each script, in seconds
把它设置成需要的值就可以了。如果设置成0的话,就是永不过期。
方法二,修改php执行文件
加上
<?
set_time_limit(0);
?>
max_execution_time = 30; Maximum execution time of each script, in seconds
把它设置成需要的值就可以了。如果设置成0的话,就是永不过期。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum execution time of 30 seconds exceeded 错误解决方案. Alfredo MySQL 0 2014-10-06 08:13 PM
phpmyadmin出现Fatal error: Maximum execution time of 300 Alfredo MySQL 0 2014-10-06 08:11 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:46 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.