If you need to run different versions of PHP in your daily development environment, I’ll show you how to do it quite effortlessly. The main reason you might need this, is to test compliance with older PHP versions. Running PHP4 and PHP5 together isn’t as hard as you may think.
Read the full article →
This is the .htaccess file that I use for my CodeIgniter PHP projects (some of these .htaccess rules can be used for any project, keep reading). CodeIgniter uses mod_rewrite to route all requests to the CI front controller. I’ve made some additions in an attempt to canocalize some of the CodeIgniter URL end points. The key benefit of a canocalized URL is that your search engine page ranking (page juice) is not spread across several pages, but instead, targeted to a single page.
Read the full article →