Using PHP Includes for Global Navigation Links

If you look after any large sites you will likely know how frustrating it can be when you need to make even minor changes. This can be something as simple as adding a new page to the global navigation. Traditionally you would need to manually edit every page on the site by adding the relevant [...]

Compress Pages with MOD_DEFLATE on Apache

I have recently been experimenting with mod_deflate on an Apache server to save some bandwidth. If like me, you may have found your host cutting access to your website temporarily if you go over your bandwidth allowance, meaning you have to purchase more bandwidth to get your pages to go ‘live’ again. However, by using [...]

Truncate SimplePie Content with PHP

This article is a follow-up to an earlier blog post about using SimplePie to display an RSS feed on your website. Sometimes it can be useful to ensure that a piece of content stays on a single line (e.g. a title), or make sure that some text stays to less than 255 characters (e.g. a [...]