Home > Backend Development > PHP Tutorial > Set php.ini script timeout method_PHP tutorial

Set php.ini script timeout method_PHP tutorial

WBOY
Release: 2016-07-13 10:54:54
Original
981 people have browsed it

Set php tutorial.ini script timeout method

There are two settings
Method one, set

in php.ini

max_execution_time = 1800 ;

Currently the above method can use ini_set("option", "value"),
ini_set(''max_execution_time'', ''180'');

Method 2: Use php page to add

set_time_limit(),

If you add set_time_limit(100) at the beginning of the php document, it means a timeout of 100 seconds.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632293.htmlTechArticleSetting php tutorial.ini There are two ways to set the script timeout method. One is to set max_execution_time = 1800 in php.ini. ; Currently the above method can use ini_set(option, value), ini_set(''m...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template