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

How to modify the maximum running time of php

王林
Release: 2023-03-10 14:06:01
Original
1964 people have browsed it

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' );
Copy after login

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!

Related labels:
php
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