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.