![]() | |||||||
Simple gz compression Want to use gz compression on your PHP pages to compress pages and save bandwidth without affecting performance? Use the PHP ob_gzhandler callback function. Here is an example of it's use: Code:
That's right... a simple line at the beginning of your PHP file is all it takes! Try it yourself in your own custom, paid, or free PHP applications :) Note: ob_gzhandler() requires the zlib extension. More FREE helpful tutorials like this one at www.georgeboone.com |
Hey George, I use currently at my custom script one page only index.php which calls all other pages as includes depending on the 'mode' value. Do I input this line in the index page only? or the includes as well? ~ And it needs to become at the very top right below session_start(); ? |
Cool, didn't know that one! Thanks for sharing! |
oh! i hope i can use it any of my forum. |
| All times are GMT -7. The time now is 02:00 AM. |
Powered by: vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0