I have a php script that performs some actions in less than 10 minutes (when it doesn't freezes).
The problem is that sometimes, for a reason that I don't know (maybe issues connecting to the remote server) it freezes without any error (cursor blinking like if it was still performing) and it needs to be mannually closed and restarted to work again. Many times I only find that it's stucked with some hours delay and thats not good.
I have already tried max_execution_time, but it returns FATAL ERROR wich doesn't allow me to restart it and that's not the idea.
Here is the sample code:
<?php
ini_set('max_execution_time', 1200);
while (1) {
include_once 'once.php';
sleep(5);
include 'a.php';
sleep(5);
include 'b.php';
sleep(600);
}