Re: [PHP] gzip functions and error

2005-01-24 Thread Richard Lynch
Dmitry wrote: > Hello! > How disable error messages when i send incorrect data into gzip* "extract" > functions, such as gzinflate or gzuncompress? > > For example: > > function _pack($data) { > $data = serialize($data); > $data = gzdeflate($data,9); > $data = base64_encode($data); > $data = ur

Re: [PHP] gzip

2004-09-07 Thread Matt M.
> I have a file on my server that I want to compress in a php page i.e take file.txt > and add it to the archive file.zip. > > How the hell do I do it using gzip cant understand the manual, or is there another > way to create a zip file or other compressed file. > have you looked at http://pea

Re: [PHP] gzip compression verification

2004-07-09 Thread Jason Wong
On Friday 09 July 2004 23:12, Daniel Guerrier wrote: > I've enabled gzip compression of pages on my site. > The question is, how do I check the size of the page > being sent to verify that the page is being > compressed. You can use an old version of Netscape (4.7X). If you view source of a compr

RE: [PHP] gzip compression verification

2004-07-09 Thread Willem Bison
> I've enabled gzip compression of pages on my site. > The question is, how do I check the size of the page being > sent to verify that the page is being compressed. Check log of webserver; bytes sent is shown there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] gzip compression verification

2004-07-09 Thread raditha dissanayake
Daniel Guerrier wrote: I've enabled gzip compression of pages on my site. The question is, how do I check the size of the page being sent to verify that the page is being compressed. pages will not always be compressed - they are delivered in compressed format only when the browser is willing t

Re: [PHP] GZIP Question

2004-02-24 Thread Richard Davey
Hello Karl, Tuesday, February 24, 2004, 5:11:40 AM, you wrote: KT> I am using fsockopen with fputs to send some headers to a HTTP server, KT> and I say I accept gzip encoding. The data gets returned and I put it KT> in a variable. However, whichever gzip command I try using in PHP to KT> decompre

Re: [PHP] gzip to max 9

2003-08-11 Thread Evan Nemerson
try setting zlib.output_compression_level in your php.ini On Saturday 09 August 2003 09:42 am, Decapode Azur wrote: > Dear All, > > > function wrl2wrz($buffer) { return gzencode ($buffer, 9); } > ob_start("wrl2wrz"); > > /* here the file */ > > ob_end_flush(); # end of the output buffering > ?>

Re: [PHP] gzip to max 9

2003-08-10 Thread Decapode Azur
> try setting zlib.output_compression_level in your php.ini won't it turn 'zlib.output_compression' to On ? (because I prefere to keep it Off) -- > > > function wrl2wrz($buffer) { return gzencode ($buffer, 9); } > > ob_start("wrl2wrz"); > > /* here the file */ > > ob_end_flush(); # end of t

Re: [PHP] GZip

2002-10-01 Thread Marek Kilimajer
Depends on your connection and CPU speed, slow connection - higher compression, slow CPU - lower compression, and vice versa Jay wrote: >I have the "output_handler = ob_gzhandler" turned on in the php.ini file so >it will automatically compress all my pages. I was just wondering what is a >goo

Re: [PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Renze Munnik
On Fri, Mar 30, 2001 at 09:53:53AM -0500, Michael Kimsal wrote: > You REALLY don't want to specifically ignore Netscape users, do you? :) > > Any browser that can accept gzipped stuff sends a content-accept > header. Netscape tells the server it can handle gzipped stuff, so the > server can sen

Re: [PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Michael Kimsal
I don't think it's anything to do with HTTP 1.0 or 1.1. It's simply the fact that NS gets a copy of the website for everything, all the time. Resized the window? OOPS! Guess I need a new copy of the file I just got 5 seconds ago! Stupid stupid stupid. I think it's simply down to the fact that

Re: [PHP] GZip: NS or HTTP/1.0

2001-03-30 Thread Renze Munnik
On Fri, Mar 30, 2001 at 08:06:21AM -0600, Brad S. Jackson wrote: > > > I've tested the ob_gzhandler with PHP 4.0.4pl1 and Netscape 4.76 and it works > fine for me. I don't know why some people have problems. > > I doubt it has anything to do with HTTP 1.1 and this can be tested by disabling >

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
To get back to your remark about those stats; I just did. Less than 1% uses NS! But still... I'd like to have a site that just works!!! RenzE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
Yep... You're right (again...). Though I must say that the transfer _is_ a 'problem'. Not only for NS users, but for most people, because let's face it; most people still use a modem (39K, 56K...) for Internet and not the 2Gb line that I have. I've got not problems with transfer-speed at all, but

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Michael Kimsal
No problem. Understood about the table issue, but it's normally not the downloading of the HTML that's as much a problem as the rendering, in my experience, with netscape. I'm the last person who would adopt this attitude, but... Check your stats? How many IE users? How many NS users? The 'so

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
A well... what shall I say. I have to agree with you _A LOT_!!! Netscape ruled, but doesn't anymore. It's a damn shame. They pretty much stick to the standards (which I like very much) but the program (browser) is f*cked up. Anyway... My pages contain some tables about three within each other. An

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Michael Kimsal
If you're using a templating system of some sort, if should be pretty easy to check the USER_AGENT and only compress if it's IE. Or NOT compress is it's NS. That's about the only way to do it easily that I can think of, and we're planning on implementing. I WANT to like netscape. REALLY. Bu

Re: [PHP] GZip + NS + Print = Trouble

2001-03-28 Thread Renze Munnik
Thanks for bringing up this solution. However... I already thought of this option myself. Problem, though, is that _ALL_ my pages should be printable. Maybe a very small number of pages will not have to be printable, but those are so small that the compression isn't realy necesary. Besides that I

Re: [PHP] Gzip compression

2001-02-02 Thread Dimitar Tsolov
Actually you are right, I just try it with MSIE 5.0 and there is a delay? But on Netscape 4.75 is ok. May be the way of unziping the page is different? I donno?! David VanHorn wrote: > At 04:24 PM 2/2/01 +0100, Dimitar Tsolov wrote: > >May be the reason is somewhere in your browser? > > > >I ca

Re: [PHP] Gzip compression

2001-02-02 Thread David VanHorn
At 04:24 PM 2/2/01 +0100, Dimitar Tsolov wrote: >May be the reason is somewhere in your browser? > >I can see both pages /compressed and another one/ and I'm using Netscape >4.75 with Linux? They both get there, (I'm running latest MSIE) but I can't seem to work out why the delay between when th