Daily PHP countdown

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Fri Apr 07, 2006 4:35 pm    Post subject: Daily PHP countdown Reply with quote

Im making a CMS and ive set up CobainBackup to backup my development directory every day at 16:00. I have got the download system working. But i would like to make a script that tell the people when the next download will be made.

I would like it in the format of Hours - Mins - Seconds

Thanks in advance
Craig
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Thu Jun 15, 2006 12:14 pm    Post subject: Reply with quote

Craig,

Are you still looking for a countdown script?

If so, I think I can help you.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Mon Jul 24, 2006 9:14 pm    Post subject: Reply with quote

Yeah i am still looking for one
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sat Aug 05, 2006 5:22 pm    Post subject: Reply with quote

abyssisthebest,

I just about have the script completed. I should have the source code sufficiently tweaked in less than 24 hours.

1. I have a PHP script that will display the current time, the time you're counting down to, and how far away that time is.

2. I also have an integrated JavaScript that will countdown the time in real time.

Do you want the JavaScript version too?
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sat Aug 05, 2006 6:16 pm    Post subject: Reply with quote

yes please, i have been searching high and low for one...
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sun Aug 06, 2006 7:21 pm    Post subject: Reply with quote

Here it is:

Demo: http://stephen.calvarybucyrus.org/misc/countdown.php
Source: http://stephen.calvarybucyrus.org/source/Countdown.zip

Enjoy!
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sun Aug 06, 2006 7:34 pm    Post subject: Reply with quote

Thanks
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Sun Aug 06, 2006 10:37 pm    Post subject: Reply with quote

I detected a problem with the JavaScript. The countdown is based on the client's computer - how much time until 16:00 in his or her time zone. It might be a few days for me to get the problem solved.

I am attempting to fix it now and I'll post when it's fixed.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Mon Aug 07, 2006 11:23 pm    Post subject: Reply with quote

Problem fixed. JavaScript counter works properly and also displays your server time in real-time!

Again, the links:
Demo: http://stephen.calvarybucyrus.org/misc/countdown.php
Source: http://stephen.calvarybucyrus.org/source/Countdown.zip

As the readme file states, you can just have realtime counters if you delete the "print" and "printf" statements in the PHP code.
If you just want a static timer display, delete the JavaScript and all the code following it.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group