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
This is an old question, and has probably been solved many times by now, but for people looking for an easy way to solve this problem, there is a library now: PHP Invoker.