I was dealing with a long-polling ajax script untill I realize the execution time of my php script NEVER ends. I did the following:
<?php
set_time_limit(11);
ini_set('max_execution_time',11);
echo ini_get('max_execution_time');
$i=0;
while (true) {
$i++;
echo "<br>".$i;
sleep(1);
}
echo "END";
?>
I get the first line as I expected; "11". But the script is still counting... I keep the page echoing... I don't know when it will finish Any suggestion? I dont have access to the server, it is at ehost.com