Internet > Web Hosting & Web Design

php track visitors visit times

(1/1)

chenks:
does anyone know if it's possible to use php to log visit times and IP addresses on a website?
i'm just trying to get a way to see when a site is being accessed the most and from where.

d2d4j:
Hi chenks

I am sure you already know, but the server hosting logs would already contain these details

If there is any missing details been logged, just edit the website service and tick all areas that you need logging.

There are plenty of free programs that will display details such as awstats

Many thanks

John

chenks:

--- Quote from: d2d4j on August 20, 2018, 08:31:03 AM ---Hi chenks

I am sure you already know, but the server hosting logs would already contain these details

If there is any missing details been logged, just edit the website service and tick all areas that you need logging.

There are plenty of free programs that will display details such as awstats

Many thanks

John

--- End quote ---

where are these in IIS8? and isn't it just as easy to get php to do it with a couple of lines of code?

d2d4j:
Hi checks

You just open iis (if 2008R2 - iis would be 7 or 7.5), click websites, click on your website, in right hand pane you will see logs listed. Double click logs and it gives you all information eg log location, what you want to log etc...

You can use php but iis would log by default unless you turn it off and web stats packages gives better human reeadable format but you need to understand certain criteria of how data is derived eg session limits for classing new visits etc...

Many thanks

John

chenks:
it's IIS8 (windows 10 pro).
there isn't a "logs" option but a "logging" option.

it creates a lot of W3SVCx folders with log files in there.

Navigation

[0] Message Index

Go to full version