Php setting page timeout work_ _ php instance

Source: Internet
Author: User
We have encountered that the webpage has been turning around due to the network card. I wonder if I can set a timeout time for the webpage. How long does it take for the webpage to prompt timeout information? Next, let's take a look at how small Editor sets the page timeout time in php. Sometimes my page keeps turning around because of the network card. I wonder if I can set a timeout time for the page, the system prompts timeout when no response is made.

For example, set_time_limit (300) in php)

I don't think php pages have a timeout mechanism.

------ Solution ----------------------

Isn't it set_time_limit () in php? You can also set max_execution_time in php. ini to change the global timeout time.

------ Solution ----------------------

Max_execution_time

------ Solution ----------------------

Set_time_limit (300)

5 minutes later. Unless you execute a large number of programs.

------ Solution ----------------------

Ini_set ('max _ execution_time ', '0'). The value 0 indicates no execution time limit.

We recommend that you do not set it to more than 30 seconds.

The above content is very short. It easily solves the problem of setting the page timeout time in php. I hope this article will help you.

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.