| You are here: Home > Scripts > PHP Countdown Clock |
| ||||||||||||||||||||
Back to ScriptsCountdown 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 November 7, 2009, 7:14 pm Countdown date January 1, 2010, 12:00 am Countdown 54 days 4 hours 45 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 |
|
contact us: elouai@gmail.com ©2003-2009 eLouai.com, All rights reserved |