I'm trying to implement a simple count down timer in PHP for an alarm feature. But I am stumped.
I have a javascript that will do this, but as soon as you leave the page, of course, you lose your timer.
Seems to me, if a person had a similar PHP function, and called it on every page, and also passed around the count value as a session value, this could work. The user could visit any page on your site, and the timer would still know when to trigger.
Any suggestions here? This may simply not be possible in PHP, I don't know.
Thanks in advance.