RE: [PHP] Gzipped output
| From: | Per Jessen | Date: | Sun, 10 Feb 2008 19:33:39 +0000 |
| Subject: | RE: [PHP] Gzipped output | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269055@lists.php.net to get a copy of this message | ||
Andrés Robinet wrote:
> How about something like this? (Needs debugging and testing, but...
> just a hint after all)
>
> <?php
>
> ob_start("ob_gzhandler");
>
> while ($someString = getTheNextPartOfTheLargeFile()) {
> echo $someString;
> ob_flush();
> }
>
> ?>
I like it from a coding point of view (it's neat and elegant), but I
don't think it achieves anything else than my initial suggestion of
using exec(gzip -c).
/Per Jessen, Zürich