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 [...]

Redirect SSL with .htaccess

If you use an SSL certificate to secure pages on your website, you may want to setup your server to always display non-secure pages using ‘http’ instead of ‘https’. In terms of search engine optimisation it is advisable that your server is setup to display a single version of a page to avoid duplication. In [...]

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 [...]