Book Review: Hands-on Testing with PHPUnit How-to

Posted by & filed under Reviews.

I just put down my copy of Hands-on Testing with PHPUnit How-to by Michael Lively, published through Packt Publishing. Hands-on Testing with PHPUnit How-to on Amazon Hands-on Testing with PHPUnit How-to on Packt Overall, this is a pretty good book, and covers all of the topics one would expect from a Unit Testing book. Such… Read more »

WordPress GET Variables with lighttpd

Posted by & filed under PHP, Web Server.

Due to RAM restrictions on various servers I’ve had to use, I learned to axe Apache a long time ago. I’ve replaced it with lighttpd, although I’ll probably be transitioning over to nginx sooner or later (it’s what we use at work, and seems to be even lighter in the memory consumption department). Therefor, all… Read more »

Notes for PHP and MongoDB Talk

Posted by & filed under NoSQL.

These are my notes for the talk I’m giving today on PHP and MongoDB. Example PHP script for communicating with MongoDB: #!/usr/bin/env php <?php // Instantiate the Mongo client $m = new MongoClient(); // Connect to a database. If it doesn’t exist, it will be created $db = $m->example; // Point to a collection within… Read more »

SleekMVC, my PHP Framework, gets Routing support

Posted by & filed under PHP.

Back when I was teaching a PHP/MySQL meetup, I wanted to get my members to use a PHP MVC framework, one that had new PHP 5.3 features at the time (such as namespacing), as well as other good PHP 5 features (like autoloading). The framework had to be so easy to use that the codebase… Read more »

Enable PHP Mail on OS X Mountain Lion

Posted by & filed under OS X.

I recently tried using the PHP mail() function on my OS X Mountain Lion installation, but was greeted with some errors instead of a successful email. I’m not sure why the mail function stopped working after upgrading to Mountain Lion, but it appears to be some sort of permissions issue. To fix the issue, execute… Read more »

MVC versus Flat PHP

Posted by & filed under PHP.

The Symfony2 Book has an excellent page about MVC versus Flat PHP. It’s made by the Symfony folks, but it is a framework-agnostic discussion, showing an evolution from one approach to the other.

Recursively convert OGGs to MP3s

Posted by & filed under PHP.

I recently had the need to change all of my OGG files to MP3s. Sure, there is a quality loss issue, but I prefer being able to play my music in my car and MP3 player over perfect quality. This script will recursively find all OGG files, and convert them into an MP3 file with… Read more »

A Primer on Web Caching

Posted by & filed under Web Server.

A lot of this article will apply to any network based application, but since I’m a web developer, I’m going to put a web spin on things. Also, I couldn’t help but get into compression a little while discussing browser caching. Caching is a vital part of any high traffic web app, especially ones which… Read more »