tags:

views:

57

answers:

1

I am creating a wap portal, and wanted to know if Opera Mini supports gzip encoding?

However, does

ob_start("ob_gzhandler");

automatically check if the browser supports gzip and sends the gzipped encoded content or do we need to check that manually ?

A: 

I got my answer, it support gzip, x-gzip, identity, deflate

and for gzip

<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) 
    ob_start("ob_gzhandler");
else
    ob_start();
?>
atif089