Don't know if this would be the right forum, however since my site is in php, I figured someone might know something. I got my site built and ready to go live, but is there a way to find out how many visitors I had on my site.
Number of visitors on siteHow to set up to find out how many visitors were on your site.
Page 1 of 1
5 Replies - 1893 Views - Last Post: 15 January 2010 - 05:59 AM
Replies To: Number of visitors on site
#3
Re: Number of visitors on site
Posted 11 December 2009 - 12:34 PM
do you have anything where your users need to login ?
you could use this to determine how many people are currently online
or set up a small table with 1 row and cell in labeled something like 'visitors' and simply increment this every time a page is called.
you could use this to determine how many people are currently online
or set up a small table with 1 row and cell in labeled something like 'visitors' and simply increment this every time a page is called.
#4
Re: Number of visitors on site
Posted 16 December 2009 - 12:54 PM
If you're looking for a simple visitor counter. Watch this video by phpacademy on youtube.
Here is his Unique Visitor Counter tutorial.
Here is his Unique Visitor Counter tutorial.
This post has been edited by Krisx: 16 December 2009 - 01:01 PM
#5
Re: Number of visitors on site
Posted 19 December 2009 - 05:14 AM
Yes i have a great ideo to accomplish this without the involvement of database in ur application. Istead using plain text file
Follow the following steps
DO THES WHEN THE PAGE IS LOADED
1- when the page is requested read the content of file;
2- assign the fetched data to a variable
3- increment the variable
4- save the incremented variable to the file
------------- Isnt is nice?---------------------
Additional help
use the File_read() method
As it will be a small file so you reading few bytes solves ur problem
Follow the following steps
DO THES WHEN THE PAGE IS LOADED
1- when the page is requested read the content of file;
2- assign the fetched data to a variable
3- increment the variable
4- save the incremented variable to the file
------------- Isnt is nice?---------------------
Additional help
use the File_read() method
As it will be a small file so you reading few bytes solves ur problem
#6
Re: Number of visitors on site
Posted 15 January 2010 - 05:59 AM
I forgot that I had this post. Thanks all for your response. I'm gonna attempt all of your ideas and will hit the thank you button for the one's idea that works.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote







|