no

How to Enable Gzip in Php

Tool: php, zencart Recently I've encountered a problem with regards to a css dropdown menu. You can see it here: http://topamanila.com...

Tool: php, zencart

Recently I've encountered a problem with regards to a css dropdown menu. You can see it here: http://topamanila.com. It's the usual dropdown however the css tags aside from all the browsers like safari, firefox, ie7, opera, etc are not working in IE6. You can see examples of css dropdown just type csshover in google.

It solved the problem in IE6 but it has a tremendous effect in speed. The web applications runs slow... So slow... So I was force to look for another possible workaround.

What I got were:

1.) The IE7.js script available under GNU for download here: http://code.google.com/p/ie7-js/. It makes the IE6 bugs simply disappear :-) (See the documentation). Just add this line in your code:

<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->



2.) By adding this line to the first part of your code:
ob_start("ob_gzhandler");
*It compressed the files transferred reducing bandwidth but increasing CPU overhead. But it's worth using.
*To identify if your page is encoded you can use this tool:
http://www.gidnetwork.com/tools/gzip-test.php

Related

php 3580285463924496106

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item