How to solve set_time_limit not affecting PHP-CLI?
#!/usr/bin/php -q 2 second
I'm ssuming that the script hangs in a loop somewhoere. Why not simply do a $STARTUP_TIME=time() the the script start, and then keep checking in the loop if the script neeeds to exit?
$STARTUP_TIME=time()