PHP Magic: Building a static countdown clock using PHP and GD

Update (2010-04-20): These Gleeks are crazy. Since being released, the clock has been viewed over 200,000 times. Insane.

If you like Glee, you’ll like this. If you like image processing using PHP, you’ll like this even more.

Using PHP and the GD image library*, it’s pretty easy to create a static, image-based countdown clock, which is useful for situations where javascript cannot be used (think WordPress.com/Blogger). A new image is automatically generated server-side for every minute (assuming a request is made for the clock for that minute), and all images are cached to avoid killing the server processor. Check it out in action on Gleeks United or after the jump.

Don’t have code yet, but I’ll post it when I get a chance.


Vertical version:
Glee Countdown!
Powered by Gleeks United

Horizontal version:
Glee Countdown!
Powered by Gleeks United

* Yes, ImageMagick could work too, but it’s too much of a pain to install.

This entry was posted in Blog, Portfolio, Web Development, Web Development and tagged , , , . Bookmark the permalink.

One Response to PHP Magic: Building a static countdown clock using PHP and GD

  1. Eugenia says:

    How can i put this on my facebook profile?

Leave a Reply