Re: Differences between echoing the output gradually or returning it.
| From: | Marek Kilimajer | Date: | Wed, 22 Sep 2004 22:51:17 +0000 |
| Subject: | Re: Differences between echoing the output gradually or returning it. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197634@lists.php.net to get a copy of this message | ||
Eduard Duran i Rosich wrote:
Hi, I just wanted to know what are the main pros and cons between echoing the output some PHP script as it process the data and returning the whole output to echo it at once. I find the second way to be useful when I want to add a header() line without concerning former output. However, is that way slower or has any other inconvenience?If you decide to output everything at the end, it will seem that there is no responce from the server for pages that take longer to build. Some impatient visitors will try refresh buttons, thus adding more load to the server.