Archive for October, 2008

PDO and MySQL on Mac OS X

October 20th, 2008

I have to do this so often I decided to just put it on my site.

Apple didn’t include MySQL support for PDO within Mac OS X 10.5 (Leopard), much to the frustration of many PHP + Mac devs.

I’ve built pdo_mysql.so for Mac OS X using the 5.2.6 source and latest mysql source.

pdo_mysql.so (133kb MD5: 9f2d8b843a2031907a994ec62e7d2c45)

This works on my xserve, and desktop mac machines running 10.5.5 with the stock PHP 5.2.6 and MySQL 5.0.67 (i686) and 5.0.45 (powerpc).

Just place the file in /usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so and add extension=pdo_mysql.so to your /etc/php.ini file.

This should work on all the following architectures:

ucommbieber:no-debug-non-zts-20060613 bbieber$ file pdo_mysql.so
pdo_mysql.so: Mach-O universal binary with 4 architectures
pdo_mysql.so (for architecture i386):	Mach-O bundle i386
pdo_mysql.so (for architecture x86_64):	Mach-O 64-bit bundle x86_64
pdo_mysql.so (for architecture ppc7400):	Mach-O bundle ppc
pdo_mysql.so (for architecture ppc64):	Mach-O 64-bit bundle ppc64

Here’s the address to download the extension http://saltybeagle.com/downloads/pdo_mysql.so

If you’d like the full details to build the extension yourself – see Tom Gidden’s post with all the info.

HighEdWeb 2008 Follow Up

October 10th, 2008

I was very impressed with the conference this year. Lots of great sessions and good information for us higher ed web folks.

My presentation on Test Driven Development for Web Applications is below. I believe they recorded the audio, but it hasn’t been posted yet.

http://docs.google.com/Presentation?id=dgtbrg66_175gngd8gz5

During the sessions, many of us plurked the details. My colleague Seth Meranda has a post which links to all the sessions with corresponding plurks.

Two days of rest, then I take a plane to Tennessee for PHP Appalachia.