Is there a way you can abort a block of code if it\'s taking too long in PHP? Perhaps something like:
//Set the max time to 2 seconds $time = new TimeOut(2); $ti
I made a script in php using pcntl_fork and lockfile to control the execution of external calls doing the kill after the timeout.
#!/usr/bin/env php
Test Script run.php