Forum Moderators: coopster

Message Too Old, No Replies

Running ob_start("ob_gzhandler") in windows

         

asantos

9:26 pm on Apr 27, 2006 (gmt 0)

10+ Year Member



Is it possible to run
ob_start("ob_gzhandler") in windows?

if so, how?
if not, why?

Thanks,
Andres

asantos

9:27 pm on Apr 27, 2006 (gmt 0)

10+ Year Member



By "windows" i meant:
* apache 2.0.55
* php 4.4.0

jatar_k

4:24 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't see anything on php.net that says you can't

did you try it?

asantos

4:32 pm on Apr 28, 2006 (gmt 0)

10+ Year Member



Yeap. I try it. But when I do the ob_end_flush() the page gets just blank.

jatar_k

4:44 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



not really sure, don't use output buffering much

I would try it a couple different ways to see if you can isolate the exact thing that is causing the error. Maybe it isn't from what you think it is.

asantos

4:48 pm on Apr 28, 2006 (gmt 0)

10+ Year Member



actually i placed everything on a separate file:

<?
ob_start('ob_gzhandler');
echo 'Test';
ob_end_flush();
?>

It didnt print anything (on windows). But it DID print 'Test' on linux.

coopster

11:58 pm on Apr 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Yes, you can use it on Windows. Double check your php.ini settings and make sure you aren't conflicting with zlib.output_compression. Also note that using zlib.output_compression is preferred over ob_gzhandler() [php.net].