PHP Setup page Timeout resolution, PHP time-out _php tutorial

Source: Internet
Author: User

PHP Set page timeout time resolution, PHP timeout


Sometimes my page because the network card, will always go, I think it is possible to set a time-out page, how long did not respond to prompt timeout

Like Set_time_limit in PHP (300)

I don't think it's a PHP page with a timeout mechanism.

------to solve the idea----------------------

PHP is not set_time_limit (), you can also set the php.ini in the Max_execution_time to change the global time-out.

------to solve the idea----------------------

Max_execution_time

------to solve the idea----------------------

Set_time_limit (300)

Card 5 minutes, a little big. Unless you are doing a lot of programs.

------to solve the idea----------------------

Ini_set (' max_execution_time ', ' 0 '), and a value of 0 indicates no execution time limit.

It is recommended not to exceed 30 seconds.

The above content is very short, easy to solve the PHP settings page time-out, I hope this article is helpful to everyone.

http://www.bkjia.com/PHPjc/1057469.html www.bkjia.com true http://www.bkjia.com/PHPjc/1057469.html techarticle PHP Set page timeout time resolution, PHP Time out sometimes my page because the network card, will always go, I think it is possible to set a time-out page, how long did not respond to mention ...

  • Related Article

    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.