Home > php教程 > php手册 > 设置php.ini 脚本超时方法

设置php.ini 脚本超时方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-25 16:53:12
Original
1139 people have browsed it

设置php.ini 脚本超时方法有二种:

方法一:在php.ini里面设置 max_execution_time = 1800;

当前上面方法可以利用ini_set("选项","值"),ini_set(''max_execution_time'',''180'');

方法二:利用php页面中加 set_time_limit(),如在php文档开始处加上set_time_limit(100),代表为100秒超时。

Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template