Home >Backend Development >PHP Tutorial >PHP maximum running time max_execution_time modification method_PHP tutorial
As follows:
------------------------------------------------ ---------------------------------------------
//Modify the maximum execution Time
ini_set("max_execution_time", 2400); // s 40 minutes
//Modify the maximum running memory this time
ini_set("memory_limit", 1048576000); // Byte 1000 MB, which is 1G
-------------------------------------------------- ----------------------------------------
The modified parameters are only this time It takes effect when running the script!