is there a performance hit using flush() ?
| From: | Matthew Delmarter | Date: | Sun, 05 Aug 2001 22:34:02 +0000 |
| Subject: | is there a performance hit using flush() ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61360@lists.php.net to get a copy of this message | ||
I am looping through a few thousand records and would like to display
the results every loop. Eg:
while($row = mysql_fetch_object($sql)):
echo "Hi $row->name<br>";
flush();
endwhile;
A simple example - but you see what I am trying to achieve. Perhaps a
more realistic example is displaying the results of a mail program as
it fires off mail to hundreds of members in a database.
Will this slow down the execution of the script at all - or much?
Regards,
Matthew Delmarter