- Impact
- 1
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:
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
Use the PHP ob_gzhandler callback function.
Here is an example of it's use:
Code:
<?php
ob_start("ob_gzhandler");
?>
<html>
<body>
<p>This should be a compressed page.</p>
</html>
<body>
Note: ob_gzhandler() requires the zlib extension.
More FREE helpful tutorials like this one at www.georgeboone.com
Last edited:




