Hello PHP,
I found this small demonstration code on the net, that shows it really
good.
<?php
ob_start('ob_gzhandler');
print "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; // 30 a's
print "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; // 30 b's
print "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; // 30 a's
header('Content-Length: '.ob_get_length());
ob_end_flush();
?>
Call it with:
wget --header="Accept-Encoding: gzip" --header="Connection: close" -S
http://localhost/test.php
on php-bugs I found that this is defined as "bogus", as the
compression takes place after all output is collected.
But I did not find an answer, how to correct this.. - using
ob_implicit_flush(); did also not help.
--
shinE!
http://www.thequod.de ICQ#152282665
PGP 8.0 key: http://thequod.de/danielhahler.asc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php