title: Is it possible to stop running a PHP script and rerun it automatically locally?
body: <p>I have a PHP script that could take <strong>more than 30 minutes</strong> running , I'm running PHP locally using "<strong>Xampp</strong>" , I'm wondering if there is a way to stop the script if a condition is true and rerun it where it stopped automatically? , I mean for example if I'm dealing with <strong>about 1500 files</strong> on my computer and I'm extracting data from them , Is it possible to stop the running process after a specific number of files and then restart from this file ? , I could change <strong>max_execution_time()</strong> function to change the maximum time the script should take , but I'm afraid of running out of memory (I have <strong>2GB Ram</strong>) or any error happens running the script for all this time , Is there is a way to achieve that ? like starting the script again to avoid running the script for this long?</p>