[Ubuntu-US-CA] Karmic Countdown

Aaditya Bhatia aaditya at dragonsblaze.com
Tue Oct 13 18:37:54 UTC 2009

On Mon, Oct 12, 2009 at 3:22 PM, Robert Wall
<robertlikesturtles at gmail.com> wrote:
> On Mon, Oct 12, 2009 at 2:29 PM, Grant Bowman <grantbow at gmail.com> wrote:
> > The Karmic version was announced here.
> > http://fridge.ubuntu.com/node/1922
> Is there a non-Javascript image that still counts down, like the one
> that the front page had for Jaunty?

Following PHP script will serve the desired countdown image. It is
nearly usable (untested though), and needs to be pointed at from the
<img> tag upon being hosted.
header("Content-type: image/png");
$dayOfMonth = date("d");
header("Expires: Thu, $dayOfMonth Oct 2009 23:59:59 GMT");
$daysLeft = 29 - $dayOfMonth;
$ch = curl_init("http://www.ubuntu.com/files/countdown/910/countdown-9.10-1/"
+ $daysLeft + ".png");
// do not end this (or any) php script with ?>, to avoid outputting
unintended extra whitespaces at the end

More information about the Ubuntu-us-ca mailing list