0
posted
how to stop PHP script run in halfway of execution ?
include("abc.php");
...
..
..
//code complete
i set the cron to run it daily . above PHP script process the some api data which is million so it take about 3 to 4 hour to run full code.
now suppose i have web page . where i click the stop process it should stop the currently running background PHP script.
so is there any way where i can stop the background running script in PHP ?