gpt4 book ai didi

php - fatal error : Maximum execution time of 30 seconds exceeded when i execute daily run from my website

转载 作者:可可西里 更新时间:2023-11-01 01:06:45 26 4
gpt4 key购买 nike

我正在使用来自网站供应商的 phpMyAdmin。

我似乎无法编辑 php.ini 设置页面。那么在哪里设置 ini_set('max_execution_time', 300); ?在我的 Php 编码页面中?或任何设置页面?

最佳答案

如果您不能编辑 php.ini 配置,那么您可以在您的 PHP 页面顶部设置以下内容:


ini_set('max_execution_time', 300); //300 seconds = 5 minutes
//OR
set_time_limit(300); //If set to zero, no time limit is imposed.

注意:set_time_limit():PHP在安全模式下运行时该函数无效。

关于php - fatal error : Maximum execution time of 30 seconds exceeded when i execute daily run from my website,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9107215/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com