ini_set('memory_limit', '2048M'); // 臨時設置最大內存佔用爲2G
set_time_limit(0); // 0 永不過期 單位是 秒
//或者使用
ini_set('max_execution_time', 7200); //設置腳本執行超時時間爲7200秒
ini_set('memory_limit', '2048M'); // 臨時設置最大內存佔用爲2G
set_time_limit(0); // 0 永不過期 單位是 秒
//或者使用
ini_set('max_execution_time', 7200); //設置腳本執行超時時間爲7200秒