Compress HTML before sending to the browser
Hany function ob_gzhandler that help facilitate sending gz-encoded data to web browsers that support compressed web pages.
This is the way I do it, checking the extension it’s loaded and that it’s possible to start the encoding:
if (extension_loaded('zlib')) {//check extension is loaded if(!ob_start("ob_gzhandler")) ob_start();//start HTML compression, if not normal buffer input mode }
- Free SMS Notification for high server load
- Check file extension in JavaScript
- Check requirements for PHP web application
- neoMobile - HTML Template for mobile browser
- Light PHP Frameworks
- Quick Ways To Gain Money - Starting An On-line Business
- SEO and the Semantic Web - how RDFa and HTML 5 will impact search
- Review of Windows Live Writer
- Home Network Security
- Opportunities And Risks Of Earning On The World Wide Web
Help sharing and Flatter me ;)
