Php program execution timeout solution (Fatal error: Maximum execution time of 30)

Source: Internet
Author: User
Tags ini time limit

This error does not mean that the php execution time has exceeded the maximum execution time set in the configuration file by 30 seconds. It is not your program error,
It is a problem with the system configuration file. If your network speed is high, the server configuration will be high, and this error will not occur again.
If this problem occurs, you can modify it as follows:
1. Modify the php configuration file and find the php. Ini file. It should generally be placed in your C: WINDOWS directory, and then find max_execution_time = 30;
// Set it to the value you want, in seconds
This line sets the maximum execution time to 30 seconds. You can modify this value to your expected value.
2. Using the ini_set () function, not everyone can modify the php. Ini file, you can use this function to change your maximum execution time limit value, such:
Ini_set ('max _ execution_time ', '2017 & prime ;);
// Set it to the value you want, in seconds

3: Add a program directly on the page

Available program modification: set_time_limit (0 );

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.