Modify PHP CLI Include Path Dynamically

I was working with an application platform that I had just downloaded today. I just wanted to check it out and play with it a bit. In the application framework was an executable script that provided some command line utility. I fired up the script and received an error like “PHP Fatal error: require_once(): Failed opening required…”. Of course non of the files from the downloaded archived were in the include path for my system, but I didn’t want to just go adding it to my php.ini file just to play around with it short term. What to do.

Command Line Options

First I wanted to see if there was a command line option that I could pass to PHP to tell it what include_path to use for just this one execution. If you execute the following you’ll see the usage:
php --help
There is no include_path command line option, but there is the -d foo[=bar] option which allows us to modify any of the INI entries by key/value.

Read moreModify PHP CLI Include Path Dynamically

Mashable’s iPhone App – Flash What?

I just opened up the Mashable app on my iPhone to view an article and received the error below stating, “You need Adobe Flash Player 8 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.” Hey guys… are you aware of …

Read moreMashable’s iPhone App – Flash What?

Upgrade Time : WordPress 2.9 and MySQL 5

WordPress 2.9 was release somewhat recently and so like a good WP minion I logged into my site and clicked the update button. Error… uh oh. Apparently WordPress 2.9 requires a more recent version of MySQL (>= 4.1.2). My host installed MySQL 5 ages ago but I’ve never bothered with migrating to the new version because I didn’t have a reason to. Now I do. So here’s how my upgrade went.

First I made a full backup of both the web content and the MySQL database. The MySQL database backup was just a mysqldump command like so:

Read moreUpgrade Time : WordPress 2.9 and MySQL 5

Geek Gift Ideas – November 30

Some people have said that, “laughter is the best medicine.” Well, today’s geek gift idea is the gift of laughter; the kind that appeals to geeks in particular. xkcd is described as a webcomic of romance, sarcasm, math and language. This book, xkcd: volume 0, is the first book that combines selections of the first …

Read moreGeek Gift Ideas – November 30

Geek Gift Ideas – November 27

Why not start off the Geek Gift Ideas 2009 edition with a Despair, Inc. 2010 Custom Calendar. Every geek loves geek humor and Despair Inc. has been dishing out the sarcasm for years now. Not only does this calendar provide a hilarious demotivator for each month, but it also contains important dates in geek history. …

Read moreGeek Gift Ideas – November 27

Friday Song Of The Day – Happy Christmas (War Is Over)

It has been since March that I posted a Friday Song Of The Day, so I figured I’d kick off this Christmas season with a Christmas tune. John Lennon’s Happy Xmas (War Is Over) seemed apropos to both the season of the year and our country. Happy Christmas Kyoko Happy Christmas Julian So this is …

Read moreFriday Song Of The Day – Happy Christmas (War Is Over)

Building ChromiumOS (The Google OS)

I’ve been watching all of the hype about downloading and running the latest Google creation, ChromiumOS this week so yesterday I decided to take a stab at it myself. I did not however want to simply grab a VMWare image and run it. I’m a software engineer for Pete’s sake! I should build it myself. …

Read moreBuilding ChromiumOS (The Google OS)