phpbar.de logo

Mailinglisten-Archive

[php] Frage zu ob_gzhandler

[php] Frage zu ob_gzhandler

Felix Jacobi felix at jacobionline.de
Sam Mai 24 15:18:22 CEST 2008


Ralf Eggert wrote:
> Hallo Toby,
>
>   
>> frag's doch ab,
>>     
>
> Das man das abfragen kann, ist mir schon klar. Die Frage war halt, ob
> ob_gzhandler sich selber darum kümmert, was der Browser akzeptiert, oder
> nicht. Aber anscheinend ist dem wohl nicht so.
>
> Danke und Gruss,
>
> Ralf
>   
Also php.net sagt folgendes:

Before *ob_gzhandler()* actually sends compressed data, it determines 
what type of content encoding the browser will accept ("gzip", "deflate" 
or none at all) and will return its output accordingly. All browsers are 
supported since it's up to the browser to send the correct header saying 
that it accepts compressed web pages. If a browser doesn't support 
compressed pages this function returns *FALSE*.

Denke das ist relativ klar ausgedrückt.

Grüße,
Felix

php::bar PHP Wiki   -   Listenarchive