Fatal error:Maximum execution time of 30 seconds exceeded in C:\\inetpub\\wwwroot*.php on line ##.
My php.ini already set to:
max_execution_time=3600
Error line executes a program which takes 2 minutes to execute: It looks like:
exec("C:/inetpub/wwwroot/program.cmd");
Note: It runs fine on sever, creates all output files nicely. But throws error to browser page.
(I restarted the server after changing php.ini file)
您可以在同一页面上动态设置执行时间,如下所示
ini_set('max_execution_time', 300);
use this....
ini_set('max_execution_time', 0); // zero means takes its own time.
This will execute the php program till it is fully executed.
请在.htaccess文件中添加以下行:
php_value max_execution_time 0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.