Maximum execution time seconds exceeded in

Source: Internet
Author: User

Fatal error:maximum execution of seconds exceeded in

Sometimes it is not optimized to run large Web sites or millions data, as fatal Error:maximum execution time of the seconds in error. So what's the reason for that, from the English meaning we can see that is more than the maximum limit of the script run time, the PHP system defaults to 30 seconds oh, if more than will appear the following error OH.
Let's look at how to improve the time to run too long solution.
With a set_time_limit ($secon) function in PHP
$cecon is a value of int in seconds
Such as
Set_time_limit (30);

It means that after 30 seconds. This program is executed, it will come out error provided. If you want to make the page never expire, set the parameter to 0 on the line.

Set_time_limit (0);

Let's take a look at the relevant page of this function.

Http://www.111cn.net/phper/24/9cf9c45340383d6f7601073018e3b9ed.htm

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.