i want to get the current time and set it to a variable . after that i want to get the current time and subtract the variable from it . this way i can get the elapsed time. can anyone help ? Edit: wihtout the use of a database.. is this possible?
$firsttime = time(); #ofcourse this is going to update to current time
#which is my problem
$diff = time() - $firsttime;
echo "<br>";
echo "<br>";
echo "You visited this page ",$diff," seconds ago";