jQuery To Scroll To A Specific Element

I thought I’d share a useful snippit of jQuery code for scrolling to a specific element on a page.

We use the .animate() method to scroll to the top of #element, over a period of 500 milliseconds. jQuery To … Continued

Using Phing To Deploy A PHP Project

Deploying a PHP project to a production or even a staging environment isn’t always as simple as copying a directory. One project I have been working on recently has benefited from using Phing as a deployment system. To deploy my … Continued

UTF-8 Aware Cron Scripts

I’ve recently been having a spot of bother with UTF-8 data in a Perl script on an old linux box. Specifically, I have been importing data from a RESTful service that includes the name Michael BublĂ©. That accented e at … Continued

Recursive Functions In PHP

Recursive functions can be very useful when developing in PHP. A recursive function is simply a function that calls itself, but why would you want your function to be able to call itself? They are best used when a problem … Continued

Replacing Text In A MySQL Database

There are times when you find yourself having to rename data in your MySQL database based on a specific pattern. I had this very problem today. A designer had changed the dimensions of the thumbnails on a website and needed … Continued