Answer the question
In order to leave comments, you need to log in
How to cancel the execution of a long script through the browser?
You need to stop the php script from the browser. Restart the server or kill all apache child processes. Tried to do so
Result is zero. Probably not enough right. windows OS passthru('C:\Apache24\bin\httpd.exe -k restart');
Answer the question
In order to leave comments, you need to log in
"Long scripts" should not be run from a browser. System commands too. Reloading should ideally never happen at all.
If the script hangs, then you need to fix the cause, not the consequences.
If we are talking about workflow, then use the event queue, semaphores, data exchange, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question