php stop execution in runtime
<p>I have a script to scrape a page. When the script runs, it takes 3 hours to complete. 
I want to build a button en when pressing it, the script must stop running.</p>

<p>Someone an idea?</p>
