A
A
Apexis2019-05-22 12:51:10
PHP
Apexis, 2019-05-22 12:51:10

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

1 answer(s)
B
Boris Korobkov, 2019-05-23
@BorisKorobkov

"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 question

Ask a Question

731 491 924 answers to any question