i am working on a XAMPP
1.7.4
[PHP: 5.3.5]
on localhost
i am trying to Gzip my files.
i am writting this piece of code at the top of my .php file
- Code: Select all
<?php
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
ob_start("ob_gzhandler");
}
?>
But when i check the http headers using firebug the header doesn't show that the data was gzipped and the file size was exactly the same. Do i need to start any certain modules or change anything in the php.ini file ..?!
Thank you in advance