CakePHP to Rails

In a blog comment, Nate Todd lays out an extensive description of why he switched from a PHP based framework (CakePHP) to Ruby on Rails. The points he makes reflect a lot of what I hear from people coming to rails, and some I’ve made myself – albeit not as eloquently as those you’ll find [...]

Remembering syntax patterns through context

Speaking of array functions in PHP, ExpressionEngine developer Derek Jones shares a trick for remembering which order to send your arguments in when using various php search functions. All array-related functions use needle, haystack and all string-related functions use haystack, needle. There are certain words in the english language which no matter how many times [...]

Burlington PHP Users Group

Last week saw quite a turnout at the Burlington PHP Users Group meeting. The event featured a talk by Matthew Weier O’Phinney, from the Zend Framework team at Zend Technologies. The discussion was lively and informative – there was a really good mix of people there, which made for great conversation. We even had some [...]

WordPress Greatest Hits widget

One of my favorite best practices in blogging is the use of a greatest hits list on the home page. I find myself looking for this list every time I come across a new blog. With that in mind, I’ve been wanting to display a list of my favorite entries from this space for quite [...]

Caching and zooming your Flickr images

I’ve made a few changes and additions to Dan Coulter‘s phpFlickr API class. These modifications address the retrieval of image URL’s, and allow the caching of images locally. In the process, I also created a little helper class to complement existing phpFlickr interface methods.

ZoomifyImage ported to PHP

Wes Wright has ported Adam Smith‘s ZoomifyImage processor from Python to PHP. This is a tool that lets you convert images to a format that can be viewed using the flash based Zoomify viewer. Wes gave me the go-ahead to write a bit about his work on this and put it up for download. Additionally, [...]

The Upcoming API as a CakePHP Model

As part of a calendar-of-events application, I needed a way to easily publish and update our events to external services, such as Upcoming or Eventful. Here are a few tools to help you integrate your CakePHP application with the community events service formerly known as upcoming.org (now known as just simply, Upcoming). Felix Geisendörfer has [...]

Upcoming.org API wrapper for PHP4

Sounds like Upcoming.org is set for some upgrades (does version 2.0 of a Web 2.0 application == 4.0? :) ) next week. Aside from a yahoo account merge, they are keeping things pretty close to the vest. Maybe the documentation wiki will be reincarnated. The suggestion board is nice, but doesn’t have the same information. [...]

Constants, Paths and ecetera in CakePHP

It took me longer than it should have to find the Global Constants And Functions section of the CakePHP Manual. At least I seem to remember searching for it a few times. Maybe I was looking for something with a vague keyword. Ah, yes – how to get the path to a specific directory in [...]

Recursive (multidimensional) array search in PHP

If you are looking to do a recursive array search in PHP (and don’t feel like writing your own), you might have tried a number of the functions described in the comments section of the array_search page in the manual. Just for future reference, I have tried a few, but not all of them worked [...]