|
General Details
|
|
PHP (Hypertext Preprocess...
|
|
Posted 1.36 Year Ago
|
|
240 Views
|
|
Received 1 Rating
|
|
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. |
More "PHP (Hypertext Preprocessor)" Source Codes By This Author
Recently Posted "PHP (Hypertext Preprocessor)" Source Codes
Recently Rated "PHP (Hypertext Preprocessor)" Source Codes
|