All Tags // PHP
Having chosen MAMP as my Apache, MySQL & PHP stack of choice on the Mac, things have been rolling along pretty well. Well, until tonight. Tonight was the first time I've had a need to connect to a database since I started developing locally. I've been building out the domain model of a project for the past few weeks and now it's time to establish persistence. Since I've used PEAR::MDB2 for database abstraction in the past and am reasonably comfortable with doing so, I decided to just stick with it (one of these days I'll get around to trying out PHP's baked-in data objects). Using MDB2, though, means that I need a working installation of pear. MAMP comes with pear installed, but it's not necessarily configured and happily ready to run. Mine most certainly wasn't.
