Jump to content

max_execution_time


MrXHellboy

Recommended Posts

Just out of curiosity

 

 

When changing the php.ini file "max_execution_time" to 5, it still looks like it takes 30 seconds.

 

However, you will receive an fatal error which states  max exec time of 5 seconds exceeded....  :shrug:

 

Anyone ?

 

No safe mode, did try set_time_limit....

Link to comment
https://forums.phpfreaks.com/topic/223507-max_execution_time/
Share on other sites

I might not be understanding your question, but max_execution_time is defined as: "sets the maximum time in seconds a script is allowed to run before it is terminated by the parser." (php.net)

 

So if you have code that takes 30 seconds to execute (does many calculations), setting max_execution_time to 5 would mean that after 5 seconds the script will "fail". What it sounds like is that you need to set max_execution_time to be longer than the time it takes to perform all of your script's calculations.

 

Try setting it to something like 40 or 60, or figure out a way to optimize your code so that it executes faster.

- Nick

Link to comment
https://forums.phpfreaks.com/topic/223507-max_execution_time/#findComment-1155321
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.