Jump to content

[Solved] PHP infinite loops timeout setting in cpanel


Recommended Posts

Posted

What is the default timeout setting? how to set the timeout in the cpanel time?

 

I have a php script that has a infinite loops(while loop), when does it timeout, how to terminate it(force quit) manually?

Posted

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);

 

 

Posted
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.

Posted

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.

 

Posted
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();.

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