tracking visitors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

tracking visitors

Post by Vegan »

I was wondering, any easy way to count new vistors and count return visitors

I envision 2 counter text files, newbies and returnies

I can use a cookie to detect a returning visitor
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: tracking visitors

Post by Christopher »

You could use a text file, but perhaps a database like SQLite might be better.
(#10850)
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: tracking visitors

Post by Vegan »

I am using Windows server, so databases are hard to connect to at the best of time
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: tracking visitors

Post by Christopher »

That's why I recommended SQLite. It is file based and very fast -- and you can use SQL to access the data. Just uncomment the .dll in php.ini and give it a try.
(#10850)
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: tracking visitors

Post by Vegan »

I have SQL server installed, any ideas to get that working with PHP?
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: tracking visitors

Post by Christopher »

Check the PHP documentation and comments.
(#10850)
Post Reply