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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.