Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Andrew
Andrew
Send A Message
Rating
5.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
PHP (Hypertext Preprocess...
Posted 3.27 Years Ago
854 Views
Received 1 Rating
More Codes By This Author
Countdown script

Countdown script


Description
How it works:
ceil() is just a "round up" function. So, for example, ceil(4.3) returns 5.

mktime() returns the unix timestamp for a date, i.e. converts a date to a number: December 25th 2006 returns 116702640

time() returns the unix timestamp for the time now.

Unix time is the number of seconds since midnight of January 1st, 1970

The example below counts down in days as 86400 is the number of seconds in a day, if you wanted to divide by another amount of time you'd need to change this to the number of seconds in that time. E.g. changing the number to any of these:
1440 = minutes
3600 = hours
86400 = days
604800 = weeks
Technical
PHP 4+
Source Code
Comments
Please login to post comments.
Page 1 of 1
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.20 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved