php execution timeout setting
1. Find the "max_execution_time" configuration item in the php.ini file and modify the corresponding value. ;
Open the php.ini file and find:
max_execution_time=30
Change it to:
max_execution_time=600
2. Use the PHP built-in function "ini_set" to modify the "max_execution_time" configuration item ;
<?php ini_set('max_execution_time', 600);//秒为单位,自己根据需要定义
The above is the detailed content of PHP execution timeout setting. For more information, please follow other related articles on the PHP Chinese website!