Use Google Analytics it will give you tons of information which you will most likely not need but it generates pretty pictures and it doesn't take up any space on your servers
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
If possible I would like to put in root directory without having a script on each page
I used the "include" statement to get a counter on all of my pages. Is that what you are after for?
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,820
Solved Threads: 600
Include works be inserting a file into another ie.,
HelloWorld.php
<?php
echo "<h1>Hello World!</h1>\n";
?>
index.php
<html>
<head>
<title>Hello</title>
</head>
<body>
<? include('Hello World.php'); ?>
</body>
</html>
Would generate a page that looks like this:
<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Obviously it can have more than one echo but that's the easiest way to describe it.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268