Kitz Forum
Internet => Web Hosting & Web Design => Topic started by: chenks on August 20, 2018, 08:06:21 AM
-
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.
-
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
-
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
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?
-
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
-
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.