- 0
Calculate time in seconds between now and Friday at 5pm
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 3 answers
- 3,246 views
-
QNAP issues patch for an RCE security vulnerability affecting PHP in NAS Drive management
By Alap Naik Desai,
- remote code execution
- rce
- (and 12 more)
- 0 replies
- 6 views
-
Get this Dynamic 2022 Data & IT Security Training Bundle at 97% off
By News Staff,
- neowin deals
- cyber security
- (and 4 more)
- 0 replies
- 6 views
-
Save 98% off this 27 Course Premium Learn to Code Certification Bundle
By News Staff,
- neowin deals
- coding
- (and 10 more)
- 0 replies
- 9 views
-
Get the Complete 2021 Superstar Backend Developer Bundle for only $39.99
By News Staff,
- neowin deals
- sponsored
- (and 7 more)
- 0 replies
- 321 views
-
Question
generalt
I have a countdown timer on my website that needs the time in seconds between the current time and a certain date, say, next Friday at 5pm. The calculation needs to be made just once -- after a user loads the page the PHP needs to calculate the time in seconds and the Javascript will count down after that. How exactly do I get PHP to do this?
Link to comment
Share on other sites
7 answers to this question
Recommended Posts