Maximum execution time of seconds exceeded

Source: Internet
Author: User

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的话,就是永不过期。

Maximum execution time of seconds exceeded

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.