nadeemshafi9 Posted January 17, 2007 Share Posted January 17, 2007 hello guysi need to time how long a user has been looking at a page, i can use the time constructs and up them to the db ect, i can think of some extreme ways to time how long a user has looked at a page like every page would tell the DB what it is called and when that changes the time gets recorded along whith page details. Is there an easier way of recording the time when the user navigates to another page eg i whant to know how long they looked at an item and then when they navigate away record this, in javascript its easy, but in PHP i have no ideaa how its done.Any sugestions welcome pleasethanx Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/ Share on other sites More sharing options...
trq Posted January 17, 2007 Share Posted January 17, 2007 You would really need to use Ajax for this sort of thing. PHP wont cut it allone. Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/#findComment-162825 Share on other sites More sharing options...
nadeemshafi9 Posted January 19, 2007 Author Share Posted January 19, 2007 so you get javascript to write a XML file and get php to read it and capture it ? Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/#findComment-164376 Share on other sites More sharing options...
nadeemshafi9 Posted January 19, 2007 Author Share Posted January 19, 2007 wow i found a PHP framework that allows you to call PHP functions from javascript, its called PHPLiveX Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/#findComment-164671 Share on other sites More sharing options...
Nameless12 Posted January 19, 2007 Share Posted January 19, 2007 [quote]Is there an easier way of recording the time when the user navigates to another page eg i whant to know how long they looked at an item and then when they navigate away record this, in javascript its easy, but in PHP i have no ideaa how its done.[/quote]yes it is do not use ajax for this. Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/#findComment-164678 Share on other sites More sharing options...
nadeemshafi9 Posted January 20, 2007 Author Share Posted January 20, 2007 Nameless12 giv us a hand then plz make a sugestion at what i should be looking at thanks Link to comment https://forums.phpfreaks.com/topic/34572-timing-a-page-visitation/#findComment-164856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.