Archive for the ‘PHP’ Category

GZIP your HTML, CSS and JavaScript with PHP

Monday, August 24th, 2009

I have been trying to improve my website optimization score within Yahoo‘s “YSlow” Firebug plug-in and have been struggling with the section regarding GZIP‘ing.

To make things worse there didn‘t seem to be any useful articles on how to do this with just server-side code (such as PHP or ASP.NET etc), the only articles I could find were all related to how to GZIP content by changing settings on the server itself – which is useless if you‘re on a shared hosting platform and even more useless for me as the examples were ALWAYS based on the user having an Apache based web server (my site is hosted on a PHP enabled Windows server!)

(more…)