Anyone has any ideas about doing that kind of script?
Thank you!
--
Yang
general theory is you update a time stamp, and when the time stamp is older
than a predeterimed time, then it is assumed they have left.
when you update time stamp, you could also, calc the differnce between
timestamps, to get an idea of how long they were there.
again, assume they left if diff becomes too great
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Yang Li Ke" <yang...@sympatico.ca> wrote in message
news:OhWYb.7149$Cd6.6...@news20.bellglobal.com...
Thanx Count, I know I could count on you ;)
--
Yang
"CountScubula" <m...@scantek.hotmail.com> wrote in message
news:cGWYb.14611$lj3....@newssvr29.news.prodigy.com...
then in this script you do this:
update via session or db or flat file, its up to you,
get the timestamp from file/db/session subtract the diff from last time to
this time, an store that as the time on site.
then store current time stamp
you now have 2 items, last length of time, and current time stamp.
thats it, do not do an endless while loop!
then on someother page or stats tracking thing you have going on, loop
through the data, and look at all
the lengths of time.
--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Yang Li Ke" <yang...@sympatico.ca> wrote in message
news:7qYYb.6468$w65.5...@news20.bellglobal.com...
Thank you
--
Yang
"CountScubula" <m...@scantek.hotmail.com> wrote in message
news:Gu%Yb.14683$YW5....@newssvr29.news.prodigy.com...
I once set up pphlogger for a client. Its nice.
http://www.phpee.com/ freeware/donate
---=====---
After all else fails, read the instructions.
---=====---
Website Design and Update http://www.diversify.com
> Im about to build a script which will log visitor time spent on my website.
What does "on my website" mean?
--
Jock
Almost nothing reflecting reality. It's one of the most useless
datapoints around, as it doesn't meant anything much at all.
Brian Rodenborn
No, you aren't: HTTP is a stateless protocol. Anyone who claims to know
how long a visitor looked at your web site is (at best) speaking from
ignorance.
You should read the readme for Analog, "How the web works":
http://www.analog.cx/docs/webworks.html
bblackmoor
2004-02-20
Ok, gotcha, I know what you want, what about something like this:
http://www-2.gzentools.com/test/time.php
There is no endless loop, but rather a piece of java that refreshes an
image, you can have a static image, this is served via a script, and the
script can update a counter thus update interval * count = time spent on
site/page
source:
http://www-2.gzentools.com/snippetview.php?c=Concepts&v=time.php