Compress file size in browser...... Just Like That !!
Hi there, While working on one of my projects, I came across one of the very useful tricks. It's about compressing file size in browser and believe me, the compression ratio is amazing !! Checkout yourself. I am going to discuss 'php' part of this. You'll find other counterparts on net. Just write ob_start("ob_gzhandler") as first line of your php script and you are done !! You can check the difference in file size by commenting the above code first in your php script. This will show your file's actual size in browser. Enable the first line again and see the magic !! To see file size in mozilla firefox browser, right click your mouse, select 'View Page Info' and see value next to 'Size' under 'General' tab. For techies out there, who really want to know, what's this and what goes on behind the scene, checkout http://www.whatsmyip.org/mod_gzip_test/phpgzip/ for details. If you are in doubt or don't how to check the file ...