Hi!!
To give you a background of my work - I am currently trying to findout the time spent on each page by my user. I am using a windows 2000 server with PHP version 4.3.1 and mySQL.
When i try to find the current time, i use the following function -
function getmicrotime()
{
$temparray=split(" ",microtime());
$returntime=$temparray[0]+$temparray[1];
return $returntime;
}
The problem that I am facing is that someitmes whena user spends more than a minute ona page, it gives me the correct time and sometimes it returns a 00:00:00 to my database.
Could someone please help me. The deadline was yesterday 🙁
Thanks,