What is the way to make php time out?
Aug 27, 2019 am 09:42 AM3 ways to set php timeout:
The first way is to open the php.ini file, find max_execution_time, and change the following numbers. into the time you want, in seconds.
After modification in this way, the service needs to be restarted. This method is generally not recommended.
Related recommendations: "PHP Tutorial"
Second, use PHP's ini_set() function setting, setting method:
ini_set("max_execution_time",1800);
The setting statement must be the first line of the php file.
The third method is to use PHP's set_time_limit() function to set it. Setting method:
set_time_limit(1800);
The setting statement must be the first line of the PHP file.
The above is the detailed content of What is the way to make php time out?. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
