[英]How do I change upload_max_filesize and max_execution_time in php.ini?
[英]How can I override the php.ini value of max_execution_time at runtime?
我的服務器中沒有訪問php.ini
。 我想更改最長執行時間,以便我的腳本可以運行超過30秒。
我有什么方法可以在我的劇本開頭做到這一點?
使用ini_set
ini_set('max_execution_time', 300); // this will set max_execution time for 300 seconds
在php文件中的代碼開頭寫這行。
要么
用這個來自HankyPankyㇱ
set_time_limit(300);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.