This site is still under construction! This doesn't mean that the articles are too!

Category archive for ‘PHP‘

Create Twitter like date formatted strings with PHP

A small function to produce Twitter like dates from various date formats. Just feed it a date, it converts it to a time (a unix timestamp), works out the difference and returns a “nice” formatted date i.e. About 1 week ago. Hope this helps.

Convert a date to a UNIX timestamp with PHP

In this article I will cover how to convert a date from such things as a database like MySQL, RSS feed or other formats into a UNIX timestamp.

CakePHP Aptana and Eclipse PDT code completion that works

A short guide on how to enable CakePHP auto completion within the Aptana Studio or Eclipse PDT IDE for Models within controllers and helpers. This actually works!