Create an Array of The Last X Days using PHP

Today I needed to generate a graph that showed activity over the last 30 days. Realizing I was going to have to create multiple customizable graphs in the future, I wrote a simple function that takes an argument for number of days and then returns an array of the last X number of days from [...]


MooTools / JavaScript Popup Calendar / Date Picker for HTML Forms

MooTools 1.1: If you’re using MooTools 1.1 on a project here is a great MooTools based calendar / date picker popup for use in HTML forms. It is very easy to get running and also to customize. Both the style and position of the calendar can easily be modified. The author also has good instructions [...]


How to Find Tomorrow, Next Month, or Next Year using PHP

I found an interesting new way to find a future or past day, month, or year using PHP. It is much easier than using a timestamp and mktime() to calculate a new date. Since this method was so easy I thought I would share it with all 3 fans of my blog. How this method [...]