Zeak Posted September 9, 2010 Posted September 9, 2010 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?
Byron Posted September 9, 2010 Posted September 9, 2010 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);
Zeak Posted September 9, 2010 Author Posted September 9, 2010 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.
Byron Posted September 9, 2010 Posted September 9, 2010 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.
Zeak Posted September 9, 2010 Author Posted September 9, 2010 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();.
Recommended Posts