php-general | 2005051
Date: 05/08/05
- Next message: Rasmus Lerdorf: "Re: [PHP] Sending htm as it's being generated"
- Previous message: Andy Pieters: "Re: [PHP] select statement"
- In reply to: Kirsten: "[PHP] Sending htm as it's being generated"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Sending htm as it's being generated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday 08 May 2005 22:17, Kirsten wrote:
I think you need to use ob_start first, then ob_flush on each update
Haven't tested it, but I think it's like this:
Note: I recommend using <?php ?> instead of <% %> (this is because not every
php server will recognize the asp style tags.
<html>
<head>
<title>XXX</title>
</head>
<body>
<?php
ob_start();
$i = 0;
while (true){
echo "<p>" . $i++ . "</p>";
ob_flush();
sleep(1);
}
?>
</body>
</html>
Kind regards
Andy
-- Registered Linux User Number 379093 -- --BEGIN GEEK CODE BLOCK----- Version: 3.1 GAT/O/>E$ d-(---)>+ s:(+)>: a--(-)>? C++++$(+++) UL++++>++++$ P-(+)>++ L+++>++++$ E---(-)@ W+++>+++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++) PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+) e>++++$@ h++(*) r-->++ y--()>++++ -- ---END GEEK CODE BLOCK------ -- Check out these few php utilities that I released under the GPL2 and that are meant for use with a php cli binary: http://www.vlaamse-kern.com/sas/ ----
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Rasmus Lerdorf: "Re: [PHP] Sending htm as it's being generated"
- Previous message: Andy Pieters: "Re: [PHP] select statement"
- In reply to: Kirsten: "[PHP] Sending htm as it's being generated"
- Next in thread: Rasmus Lerdorf: "Re: [PHP] Sending htm as it's being generated"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

