This is a discussion on Hit Tracker Script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hey all... Here's a short little script I wrote to track visitors to our website. http://www.cabarettheatre.org/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hey all...
Here's a short little script I wrote to track visitors to our website. http://www.cabarettheatre.org/hittracker.phpx Just save the file and rename it to hittracker.php. Then all you have to do is include it in your PHP files and edit the path to your log file and you're all set! -- Chris Dingman Webmaster Cabaret Theatre http://www.cabarettheatre.org Now selling officially licensed Cabaret Theatre merchandise |
|
|||
|
Nothing special yet, I have see lot like this one, but can I suggest you
something, Instead of writing the date already formated, you should write the timestamp time(). So if later I want to display the time using another format, you still can do it. And you forgot to store the current page that the visitor is visiting. Keep the good work. Savut "Chris Dingman" <webmaster@cabarettheatre.org> wrote in message news:onzPb.3974$ro4.1049@nwrdny02.gnilink.net... > Hey all... > > Here's a short little script I wrote to track visitors to our website. > > http://www.cabarettheatre.org/hittracker.phpx > > Just save the file and rename it to hittracker.php. Then all you have to do > is include it in your PHP files and edit the path to your log file and > you're all set! > > -- > Chris Dingman > Webmaster > Cabaret Theatre > http://www.cabarettheatre.org > Now selling officially licensed Cabaret Theatre merchandise > > |
|
|||
|
For those whose hosts do not allow access to the apache log files.
-- Chris Dingman Webmaster Cabaret Theatre http://www.cabarettheatre.org Now selling officially licensed Cabaret Theatre merchandise "Ian.H" <ian@WINDOZEdigiserv.net> wrote in message news:pan.2004.01.21.19.53.56.406317@hybris.digiser v.net... > On Wed, 21 Jan 2004 18:17:56 +0000, Chris Dingman wrote: > > > Hey all... > > > > Here's a short little script I wrote to track visitors to our website. > > > Begging the question.... "why?" > > That's what log files are for ;) > > > > Regards, > > Ian > > -- > Ian.H - digiServ Network > www.digiserv.net | irc.digiserv.net | forum.digiserv.net > Programming, Web design, development & hosting. > PGP Key: <http://digiserv.net/pgp/ian_h.asc> > |
|
|||
|
"Ian.H" <ian@WINDOZEdigiserv.net> wrote in message
news:pan.2004.01.22.15.44.27.869818@hybris.digiser v.net... > > [ Rearranged into correct chronological order ] > [ <http://tk.digiserv.net/tofu.txt> ] > > > >> "Ian.H" <ian@WINDOZEdigiserv.net> wrote in message > >> news:pan.2004.01.21.19.53.56.406317@hybris.digiser v.net... > >> On Wed, 21 Jan 2004 18:17:56 +0000, Chris Dingman wrote: > >> > >> > Hey all... > >> > > >> > Here's a short little script I wrote to track visitors to our website. > >> > >> > >> Begging the question.... "why?" > >> > >> That's what log files are for ;) > > > On Wed, 21 Jan 2004 22:17:19 +0000, Chris Dingman wrote: > > > For those whose hosts do not allow access to the apache log files. > > > Which gives you false information[1]... which ummm.... makes it pointless > does it not? > > If it's any consellation... many have done the same (I have too.. back > in the day).. but they really aren't reliable enough =) > > > > Regards, > > Ian > > [1] There is no reliable method to properly track users via scripting.. > the HTTP protocol is too limited for what's required. > > -- > Ian.H - digiServ Network > www.digiserv.net | irc.digiserv.net | forum.digiserv.net > Programming, Web design, development & hosting. > PGP Key: <http://digiserv.net/pgp/ian_h.asc> Chris probably meant 'log visits to our website'. I don't have access to the server access logs, but my own logging is better than what the server logs anyway :) George Girard, Programmer/FiddlerArounder, georgegg@magnolia.net Your Current Internet Information can be found here: http://www.canufly.net/~georgegg/You...et.Information http://www.canufly.net/~georgegg/dns/Dns.Whois.Nslookup |