php

The blog is currently being ported from WordPress to over 12 years of static pages of content. If there's an article missing that you're hoping to see, please contact me and let me know and I'll prioritize getting it online.

Managing multiple versions of PHP on Mac OS X with Homebrew

I sense a trend starting. A few weeks ago, I wrote a post about managing different versions of Python on Mac OS X, and today I’m going to explain how I use multiple versions of PHP on the same platform. The Problem Until the homebrew-php group figure out a better way of handling several versions of PHP (their instructions haven’t worked for several months), and without installing something like phpenv, I concocted my own means to manage PHP versions using bash aliases similar to my Python post.

Continue Reading

Has PHP evolved? Or is it the same ol' same ol' that everyone loves to hate

Has PHP evolved? Or is it the same ol' same ol' that everyone loves to hate? I love to call PHP the “Nickleback of Programming Languages” – everyone loves to give it crap, but there are still some die-hard fans out there. Some thoughts from Blackshawk In which I do a little digging about the choices I've made with PHP. This is a long read, but it isn't something that can be explained in one or two paragraphs.

Continue Reading

mod_rewrite hack in PHP for redirecting old URLs with question marks

A previous blog engine I used to use, e107, created links like “http://iandouglas.com/page?3.0" (my old SpamAssassin trainer tutorial page) so I decided I should at least attempt to toss in a few mod_rewrite rules to even up the playing field so search engines and people with bookmarks could still get to the tutorial text which I’ve started adding to the new CMS. Trouble is, mod_rewrite doesn’t support something simple like:

Continue Reading