cicibo Posted January 18, 2007 Share Posted January 18, 2007 Hi there... I am doing a website that record duration of time when a user view a page..example :page1 = 5 secondspage2 = 7 secondspage3 = 10 second..and so on...does anybody know how to solve this problem...any idea....thanks Link to comment https://forums.phpfreaks.com/topic/34705-php-time-problem/ Share on other sites More sharing options...
DeathStar Posted January 18, 2007 Share Posted January 18, 2007 dont understand you correctly..do you want to find out how long the user has been viewing the page? Link to comment https://forums.phpfreaks.com/topic/34705-php-time-problem/#findComment-163570 Share on other sites More sharing options...
cicibo Posted January 18, 2007 Author Share Posted January 18, 2007 Yup, that is what i want to make Link to comment https://forums.phpfreaks.com/topic/34705-php-time-problem/#findComment-163582 Share on other sites More sharing options...
taith Posted January 18, 2007 Share Posted January 18, 2007 on the page itself, set a $_SESSION[time]=time(), then on your exiting page, you just $seconds=time()-$_SESSION[time]; Link to comment https://forums.phpfreaks.com/topic/34705-php-time-problem/#findComment-163584 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.