Re: gzip-based html compression

From: Date: Wed, 28 Jun 2000 18:07:58 +0000
Subject: Re: gzip-based html compression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3616@lists.php.net to get a copy of this message
Where can I find out more about these functions?? I checked the manual, and nothing is there... > You can do that pretty much transparently today(*), using the following > code: > > prepend.inc.php: > <? > ob_start(); > header("Content-type: text/x-gzip-compressed"); // I don't really > remember what this line should really look like, this is just the general > idea > ?> > > append.inc.php: > <? > $content = ob_get_string(); > ob_end_flush(); > print gzcompress($content); > ?> > > Zeev > > > (*) Requires PHP 4.0

« previous php.general (#3616) next »