Mid-Year Resolutions

While I’ve never been a big one for making New Year’s Resolutions - and certainly not for keeping New Year’s Resolutions, here’s a new twist:

Considering until January 1, 2008, I’ll call this my Mid-Year Resolution: more posts, each with an observation, something I’ve learned, or something popular among the Brogue Craic crowd.

And what did I learn today? How to use PHP to insert a date counter that counts down to a certain date. Depending on when you look at this post, the number of days remaining in the paragraph above will automatically be correct. Bet I use this in a client site before the end of the year. “. floor($difference/60/60/24).” days from now!”; ?>

Post a Comment