You are here:   Home > Scripts > PHP Countdown Clock
What's
New
Doll
Makers
Room
Makers
Puzzle
Makers
Roiworld Stardoll Smilies Links

Back to Scripts

Countdown Clock

(requirements: PHP)

An easy to use Countdown Calendar. Just provide a date to countdown too, it will then display the time left in days, hours and minutes.
(Note: This countdown script output below.)


Countdown Calendar output:

Today's date March 18, 2010, 1:02 pm
Countdown date January 1, 2010, 12:00 am
Countdown 0 days 0 hours 0 minutes left

Countdown Calendar Usage

usage is simple, either cut and paste or include the countdown clock in your own scripts.

i.e. An example of a Countdown to New Year 2010!
<?php
include 'countdown.php';
// countdown to New Year 2010
countdown(2010,1,1,0,0,0);
?>


Countdown script

Below is the countdown.php script, either save it a file or just incorporate into your php page:



Javascript countdown vs php countdown

For a realtime countdown then javascript countdown (client side scripting) is the way to go. The countdown dates would be dependent on the clients computer date bieng set correctly.

A php countdown script is dependent on the server time, thus the countdown date is FIXED, unlike a countdown date reaching its goal at various times throughtout a 24 hour period.

Looking for an excellent Javascript Countdown script?



References:
PHP.net, function mktime



About     Privacy Policy     Hosting by Web Hosting Canada

Except where otherwise noted, this site is licensed under a Creative Commons License



contact us: elouai@gmail.com
©2003-2010 eLouai.com, All rights reserved