That should work... Works For Me (TM) :)
1) well how did you check it (that it has been sent compressed)?
2) due to my failures checking what a browser would get I decided to write the compressed stream to a file, doesn't fflush() work with OB functions? if not it should be fixed somehow, it's a very helpful function...
neither "ob_gzhandler" nor () fill my file with anything (both linux+w32)
$a=50;
ob_start("ob_gzhandler");
echo str_repeat('a',$a);
$fp=fopen('test.txt','w+b');
fflush($fp);
ob_end_flush();
3) it does not work, ok. so I could not test - what is ob_get_contents() supposed to return a) compressed buffers b) uncompressed buffers
if it's (b) it would be very handy to access the compressed (encrypted,... whatever will follow) string if I don't want to use fflush() eg. passing to DB,cookie,field,system... whatever
andré
--
· André Langhorst · t: +49 571 3201801 ·
· waldschrott@php.net · m: +49 173 9558736 ·
· PHP Quality Assurance · http://qa.php.net ·