Hi,
i just need a quick suggestion on how to create a timer script in PHP: of course you'll be using <i>Sessions</i> for this. well, start time is from an initial page and then end time is on another.
i tried placing the current time() value in a session variable. then on the other page, i tried to get the new time() value and subtract it by the time() value from the session variable.
testing this script for a couple of minutes; i get the correct number of minutes and seconds for the output, but it also gives me an initial eight hour and one day value. where did that one day and 8 hours come from and how do i get rid of them. <i>(btw, i know that time() starts at a value equal to January 1, 1970. i just assumed that it started at 12:00am. this im not sure if i'm right)</i>
🙂
Thanks in advance!
Nil-Joe
if you're curious on where i'm going to use this or why i need this, well, it's for the online examination application i'm developing.