|
|
Installation guide for NEWBIES
This guide is intended for those who doesn't know anything about php. If you are a little experienced, I don't think it will be useful for you.
I am using Linux (KDE), but it's not different from Windows for our work. I will proceed step by step:
- First of all, You have to know that CcCounter (like any other php script) can't work without a server! So, if you want it to count a page relying in your own PC, you have to install a web server (like Apache)and php.
Otherwise, if you have a site in hosting and you simply want to count the pages of your site, you don't have to worry about that.
- Make sure that pages you want to be counted have .php extension! You can't count pages with .htm/.html extension, because php is not processed. You don't have to worry about page contents: nothing will change. To view a page with .php extension, you can 1)drag it in you preferred browser, or 2)install a web server, put that page in the right directory (normally www/), and view it at
http://localhost/page_name.php , that is a lot better. If you have a site in hosting, you have only to change pages extension (and update hyperlinks). Everything will work like before.
- If the previous steps are correct, extract the file you have downloaded to a folder. As you can see, there is a directory named
cccounter . You have to upload it to your web server. If you have a site in hosting, open your preferred ftp manager and drag the folder into the main folder of your site, that is the same directory of your index.php file.
- Add the following line to any page you want to be counted:
<?php include "cccounter/counter.php";?>
This line will be replaced by the following one:
This page has been visited < NUMBER OF VISITORS > times. View usage statistics.
I assumed cccounter folder is in the same directory of the pages you want to count. If not, edit the previous line with the right include path. To modify the output line, edit config.php.
- Open some page with your browser. If you click on
View usage statistics , or you open cccounter/index.php , you will be able to see the statistics generated for your site!
- If you contry is not listed between the recognised countries, you can add it to the list. Just look in the package you have downloaded: there is a directory named
country_adder , and inside there is a file named add_country.php . You have to upload it into the cccounter directory in your site (the directory you've uploaded before). After that, open that file (http://www.your-site.com/cccounter/add_country.php )with your preferred browser, and follow the instructions. Once you've done, delete that file for security.
If you have problems, you can ask me by signing CcCounter guestbook.
|
|