Re: Keep track of page-access [message #172889 is a reply to message #172887] |
Fri, 11 March 2011 21:36 |
sl@exabyte
Messages: 16 Registered: March 2011
Karma:
|
Junior Member |
|
|
Beauregard T. Shagnasty wrote:
> sl@exabyte wrote:
>
>> After some searching I intend to use AJAX and PHP to keep track of
>> the number of times an HTML file (just a single file) has been
>> accessed.
>
> AJAX not necessary. Just use a bit of PHP in the file to do something
> simple like update a database .. a counter.
>
> Or as Doug says, look at your server logs.
I suppose for PHP alone, the HTML file must end with ".php" extension.
For server logs alone, would it a problem if I need to keep the counter
over, say, a few years. I hope not to clear the log every month.
|
|
|