Re: [PHP] zlib.output_compression

2005-07-13 Thread Mikey
LacaK wrote: Thanks for reply, In documentation is stated, than zlib.output_compression is changeable at PHP_INI_ALL. If there is no possibility to change it in script, why it is not PHP_INI_SYSTEM|PHP_INI_PERDIR ? And at second : When I set zlib.output_compression=on in php.ini, then I

Re: [PHP] zlib.output_compression

2005-07-13 Thread LacaK
Yes, I tried setting it to 1 and also on and 4096 /*buffer size*/, but the same result. phpinfo() says, that zlib.output_compression=on, but page is not compressed. I have checked source code of php, but I am not able to find, why it does not work ? Can any one explain, why is possible set

Re: [PHP] zlib.output_compression

2005-07-12 Thread Jasper Bryant-Greene
LacaK wrote: I see contents using Network Monitor, so I se response header and contents andthey are uncompressed, so somresion does not uccured. It's likely the browser is uncomressing it before you ever see it. I would telnet to port 80 and make an HTTP request to see for sure. To turn

Re: [PHP] zlib.output_compression

2005-07-12 Thread LacaK
Thank you, I know this technique : ob_start('ob_gzhandler'); but I am interesting on : ini_set('zlib.output_compression', true); /this is preffered method as stated in manual : Also note that using ini.zlib.output_compression is preferred over ob_gzhandler(). / And I do not understand, why it

Re: [PHP] zlib.output_compression

2005-07-12 Thread M. Sokolewicz
Is your browser sending an accept-encoding header containing gzip? (eg. Accept-Encoding: gzip,deflate). If not, then PHP will reason it should not send gzip-encoded content because the browser won't understand. - tul LacaK wrote: Thank you, I know this technique : ob_start('ob_gzhandler');

Re: [PHP] zlib.output_compression

2005-07-12 Thread LacaK
Yes, my browser send Accept-Encoding: gzip,deflate When I alter : zlib.output_compression=on in php.ini it works fine ! Only runtime alter : ini_set('zlib.output_compression', true); does not work !? LacaK. M. Sokolewicz wrote: Is your browser sending an accept-encoding header containing

Re: [PHP] zlib.output_compression

2005-07-12 Thread david forums
do not forget to remove ob_start, also you'll make double compression regards Le Tue, 12 Jul 2005 12:29:02 +0200, LacaK [EMAIL PROTECTED] a écrit: Thank you, I know this technique : ob_start('ob_gzhandler'); but I am interesting on : ini_set('zlib.output_compression', true); /this is

Re: [PHP] zlib.output_compression

2005-07-12 Thread LacaK
of course I have removed ob_start(...) david forums wrote: do not forget to remove ob_start, also you'll make double compression regards Le Tue, 12 Jul 2005 12:29:02 +0200, LacaK [EMAIL PROTECTED] a écrit: Thank you, I know this technique : ob_start('ob_gzhandler'); but I am interesting

Re: [PHP] zlib.output_compression

2005-07-12 Thread Jasper Bryant-Greene
LacaK wrote: Yes, my browser send Accept-Encoding: gzip,deflate When I alter : zlib.output_compression=on in php.ini it works fine ! Only runtime alter : ini_set('zlib.output_compression', true); does not work !? LacaK. I'm pretty sure this behaviour is by design -- it doesn't make sense to

Re: [PHP] zlib.output_compression

2005-07-12 Thread LacaK
Thanks for reply, In documentation is stated, than zlib.output_compression is changeable at PHP_INI_ALL. If there is no possibility to change it in script, why it is not PHP_INI_SYSTEM|PHP_INI_PERDIR ? And at second : When I set zlib.output_compression=on in php.ini, then I CAN turn it off

[PHP] zlib.output_compression

2005-07-11 Thread LacaK
Can anyone help me with this question : when I write script like this : ?php ini_set('zlib.output_compression', true); phpinfo(); ? page displays, that zlib.output_compression is On, but realy is not compresed (is send only like text/html) Is possible to turn on compression (enable) in

Re: [PHP] zlib.output_compression

2005-07-11 Thread Greg Donald
On 7/11/05, LacaK [EMAIL PROTECTED] wrote: Can anyone help me with this question : when I write script like this : ?php ini_set('zlib.output_compression', true); phpinfo(); ? page displays, that zlib.output_compression is On, but realy is not compresed (is send only like text/html)

Re: [PHP] zlib.output_compression

2005-07-11 Thread LacaK
I see contents using Network Monitor, so I se response header and contents andthey are uncompressed, so somresion does not uccured. It's likely the browser is uncomressing it before you ever see it. I would telnet to port 80 and make an HTTP request to see for sure. -- PHP General Mailing

[PHP] Zlib.output_compression - Problem

2004-04-07 Thread Beck, Mike
Hi everybody, I initially posted this on a german php-list, then i tried on php-install on php.net but did not get one single answer yet. I hope there is somebody on this list that can help me: I am having a problem with zlib-compression-settings in php.ini and the sending of 'normal' files with

[PHP] zlib.output_compression, how to turn it OFF?

2001-05-10 Thread Jakob Kruse
Hi. I have turned on zlib.output_compression in my PHP 4.0.5 php.ini file, and it works beautifully. But if I want to turn off all buffering/compression for a single page, how do I do that? Regards, Jakob Kruse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] zlib.output_compression, how to turn it OFF?

2001-05-10 Thread Zeev Suraski
At 16:53 10/5/2001, Jakob Kruse wrote: Hi. I have turned on zlib.output_compression in my PHP 4.0.5 php.ini file, and it works beautifully. But if I want to turn off all buffering/compression for a single page, how do I do that? The only way to selectively configure zlib.output_compression for

Re: [PHP] zlib.output_compression - how to turn it on

2001-05-02 Thread Robert Mena
Yasuo, thanks for the reply. Yes I do have zlib support (shows me in phpinfo()). Sorry the stupid question but How do I check the size of the page ? If I access it and use save as I will have the uncompressed version right ? Which .ini directive did you use ? - thanks If you want to check

[PHP] zlib.output_compression - how to turn it on

2001-05-01 Thread Robert Mena
Hi, after downloading and compiling php4.0.6dev (from cvs) I've decided to try the new much improved zlib output support (already enabled in 4.0.5). The announcement from the changelog says check the zlib.output_compression ini. I've searched the php.net site as well as the mailing lists but

Re: [PHP] zlib.output_compression - how to turn it on

2001-05-01 Thread Yasuo Ohgaki
Robert Mena [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, after downloading and compiling php4.0.6dev (from cvs) I've decided to try the new much improved zlib output support (already enabled in 4.0.5). The announcement from the changelog says check the