Output Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to execute my script in a browser as with the shell mode.

Example:

<?

static $i = 0;
while ($i < 10) {
++$i;
echo "$i\n\n";
sleep(1);
}

?>

I've tried this but it's doesn't work :

<?

static $i = 0;
while ($i < 10) {
++$i;
echo "$i\n\n";
flush();
sleep(1);
}

?>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux