Manually Stopping PHP Script

recloop

New Member
Messages
1
Reaction score
0
Points
0
Hello,

Is there a reliable way to manually kill a PHP script if it has gone astray (ie entered an infinite loop or somesuch)? I know the server will probably kill it after awhile, but I'd like to avoid eating up processing power and memory, and be able to fix the problem and try it again right away.

Thanks!
 

Scoochi2

New Member
Messages
185
Reaction score
0
Points
0
Hello,

Is there a reliable way to manually kill a PHP script if it has gone astray (ie entered an infinite loop or somesuch)? I know the server will probably kill it after awhile, but I'd like to avoid eating up processing power and memory, and be able to fix the problem and try it again right away.

Thanks!
PHP has a timeout. On most servers, execution will stop after 30 seconds whether you want it to or not.
 
Top