Number of visitors on site

How to set up to find out how many visitors were on your site.

Page 1 of 1

5 Replies - 2533 Views - Last Post: 15 January 2010 - 05:59 AM Rate Topic: -----

#1 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

Number of visitors on site

Posted 11 December 2009 - 02:53 AM

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.
Is This A Good Question/Topic? 0
  • +

Replies To: Number of visitors on site

#2 maffelu  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 40
  • View blog
  • Posts: 190
  • Joined: 21-August 08

Re: Number of visitors on site

Posted 11 December 2009 - 04:04 AM

google analytics?
Was This Post Helpful? 0
  • +
  • -

#3 ghqwerty  Icon User is offline

  • if($spareTime > 0){ $this->writeCode(); }
  • member icon

Reputation: 43
  • View blog
  • Posts: 900
  • Joined: 08-August 08

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.
Was This Post Helpful? 0
  • +
  • -

#4 Krisx  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 21
  • Joined: 14-December 09

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.

This post has been edited by Krisx: 16 December 2009 - 01:01 PM

Was This Post Helpful? 0
  • +
  • -

#5 karimi  Icon User is offline

  • Banned
  • member icon

Reputation: -9
  • View blog
  • Posts: 104
  • Joined: 29-May 09

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
Was This Post Helpful? 0
  • +
  • -

#6 ladyinblack  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 9
  • View blog
  • Posts: 419
  • Joined: 08-April 09

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1