Home >Backend Development >PHP Problem >How to modify the maximum running time of php

How to modify the maximum running time of php

王林
王林Original
2021-06-10 16:50:191994browse

The way to modify the maximum running time of php is to edit the php.ini configuration file and modify the value of the max_execution_time option, such as [max_execution_time = 300].

How to modify the maximum running time of php

The operating environment of this article: windows10 system, php 7.3, thinkpad t480 computer.

It is actually very simple to modify the maximum running time of php. We can directly modify the value of max_execution_time in the php.ini configuration file.

is as follows:

How to modify the maximum running time of php

But if we do not have permission to modify the php.ini file, or we want to set up individual pages for certain pages. Then you can also set it in the PHP program page, the code is as follows (a value of 0 means there is no execution time limit).

ini_set ( 'max_execution_time' , '0' );

Related video sharing: php video tutorial

The above is the detailed content of How to modify the maximum running time of php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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