Jump to content

[Solved] PHP infinite loops timeout setting in cpanel


Zeak

Recommended Posts

These are the maximum amount of time that can't be changed:

 

Maximum execution time of each script (in seconds) 30.

 

Maximum amount of time each script may spend parsing request data (in seconds) 60.

 

You can lesson the time inside your script by adding this to top of your code:

 

set_time_limit(20);

 

 

Link to comment
Share on other sites

These are the maximum amount of time that can't be changed:

 

Maximum execution time of each script (in seconds) 30.

 

Maximum amount of time each script may spend parsing request data (in seconds) 60.

 

You can lesson the time inside your script by adding this to top of your code:

 

set_time_limit(20);

 

but how come when I run my php script, it's kept loading forever? and dont display timeout.

Link to comment
Share on other sites

Was this after you added:

 

set_time_limit(20);

 

or before?

 

 

I'm going to go ahead and escalate this to djbob just incase he needs to check max_execution_time on php scripts.

 

This is before, it doesn't have any timeout set into the script.

 

Maybe it's the code, because I do see the max_execution_time = 30 , 30 on the phpinfo();.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...