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
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 = urlencode($data);
return $data;
}
> 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
Hi,
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.
cheers
matt
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
> 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:
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
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.
Danny
__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promoti
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
Hi,
I am using fsockopen with fputs to send some headers to a HTTP server,
and I say I accept gzip encoding. The data gets returned and I put it
in a variable. However, whichever gzip command I try using in PHP to
decompress it (or is it deflate, or both?) returns an error. Is it
because the s
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
> ?>
> 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
Dear All,
In this exemple with output beffering it is possible to select the maximum
compression level,
is it possible to select the maximum compression level too
when writing in a file like below ??
$gzp = fopen($output_file, 'w');
gzwrite($gzp, $content);
gzclose($gzp);
I think that the
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
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
good zlib.output_compression level to put it on or is the default (4kb) a
good size?
thanks!
--
PHP General Mailing List (http://www.php.net/
What header do I type to gzip something out on the screen? To make the
output go faster, such as this text output:
http://ccl.flsh.usherb.ca/db/export_to_nb_format.php
I don,t want to actually zip the output, just make it go faster. Someone
once told me I could do that so the server spits output f
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
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
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
>
Okay guys I've got a new idea
I just found out that NS<5 uses HTTP/1.0 and not HTTP/1.1. Well,
okay, but that's not _to_ exciting is it?! But... (there's always a
'but') IE>=5 uses HTTP/1.1. Now, looking back at the subject being
discussed in this thread, I'm wondering if that might be the pr
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
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
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
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
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
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
Okay
ob_start ("ob_gzhandler") is a very cool thing to use. At least when
you write _to much_ code like I do. And it works perfectly
most of the time, i.e.
I've got this problem:
My pages start with the gzhandler (see above) to decrease the amount
of data that should be transferred
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
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
I'm looking at implementing Gzip compression and output buffering.
I think I have it working, but for some reason, the page isn't displayed
for 8-10 seconds.
It seems that the compressed page is sent immediately, but the browser
hangs on to it for some reason.
http://www.dvanhorn.org/Test/Ind
30 matches
Mail list logo