View Single Post
  #1  
Old 12-09-2005, 07:10 AM
omen omen is offline
Junior Member
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
omen is on a distinguished road
Default To define click as visit?

I have code for tracking time of visitor. I have the fillowing function:

PHP Code:
function olduser($visitID)
{
$now = time();
$visitData = getVisit($visitID);
if ( ! $visitData )
{ return newuser();}
$visitData ['totalClicks']++;
if ( ($visitData ['lastVisit'] + $GLOBALS ['slength']) > $now)
{
$visitData ['totalDuration'] += ($now - $visitData ['lastVisit']);
}
else
{
$visitData ['numVisits']++;
}

$visitData ['lastVisit']=$now;
updateVisit ($visitData);
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - To define click as visit?
View Single Post
  #1  
Old 12-09-2005, 07:10 AM
omen omen is offline
Junior Member
 
Join Date: Dec 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
omen is on a distinguished road
Default To define click as visit?

I have code for tracking time of visitor. I have the fillowing function:

PHP Code:
function olduser($visitID)
{
$now = time();
$visitData = getVisit($visitID);
if ( ! $visitData )
{ return newuser();}
$visitData ['totalClicks']++;
if ( ($visitData ['lastVisit'] + $GLOBALS ['slength']) > $now)
{
$visitData ['totalDuration'] += ($now - $visitData ['lastVisit']);
}
else
{
$visitData ['numVisits']++;
}

$visitData ['lastVisit']=$now;
updateVisit ($visitData);
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote