this PHP script gets terminated after 60 seconds.
I have already set:
ini_set('max_execution_time', 0);
ini_set('memory_limit','1024M');
And want to execute php using passthru
or exec, and have recursive function to check status in db:
function checkstatus() {
$check_status = mysql_fetch_array(mysql_query("select * from table where status='1'",$con));
$status=$check_status["status"];
if ($status !== "1") {
passthru("/usr/bin/php abc.php");
die();
} else {
sleep(30);
checkstatus();
}
}