Maximum execution time seconds exceeded solution __maximum

Source: Internet
Author: User
Tags server memory
today to the friend configuration Wamp, just set up, open a local station on this error, Maximum execution time of seconds exceeded, today to the wrong solution summed up: A simple summary of the solution: Error One: Memory overrun, the specific error statement forgot, simply say the solution. The use of cyclic partial import, each loop at the beginning of the use of sleep (5), statements, to do a deferred execution, to prevent server memory at the same time too much, the number of changes in the inside of each loop using Ob_flush (), Refresh output buffer flush (); Send all output from the program so far to the user's browser both must be used simultaneously to flush out the output buffer error two: 30 Seconds to run timeout (Maximum execution time of seconds exceeded) solution: Method One, Modify php.ini file Max_execution_time = 30; Maximum execution time of the each script and in seconds set it to the desired value. If set to 0, it is never expired. Method Two, modify PHP execution file plus Set_time_limit (0);?> max_execution_time = 30; Maximum execution time of the each script and in seconds set it to the desired value. If set to 0, it is never expired.

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.