我没有php.ini在我的服务器上访问.我想更改最长执行时间,以便我的脚本可以运行超过30秒.
我有什么方法可以在我的剧本开头做到这一点?
使用 ini_set
ini_set('max_execution_time', 300); // this will set max_execution time for 300 seconds
Run Code Online (Sandbox Code Playgroud)
在php文件中的代码开头写这行.
要么
用这个来自 HankyPankyㇱ
set_time_limit(300);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9610 次 |
| 最近记录: |