Free PHP Counter  

View Live Demos
AdFree Counter
Counter FAQ
Contact us / Inprint

Counter FAQ

Here is a list of frequently asked questions.

Why are there two counter versions?
Which counter do I need?
How does the add link look like?
Why should I purchase an addfree edition?
How do I get the absolute path?
How do I get the http path?
What does IP Lock mean?
How to set file permission?
How to include the counter in .html files?
How to create the tables with phpmyadmin?
How to set the database connection?
How to change the counter values?
How can I support this project?
How can I ask an other question?
How do I get ICQ support?
I can translate the counter to a new language



Why are there two counter versions?

When I started developing that counter, there was a textfile-based edition only. As some users ask me for a mysql version I created that second version. There is no different between these counters, just that one of them stores the data in a textfile and the other one in a database.


Which counter do I need?

It is your choice. When you have no database you can only use the textfile counter. When you have a database you could use the mysql edition as well. I suggest using the textfile counter on projects that don't not use a database.


How does the add link look like?

There will be an addvertise link behind the icon and an link to my counter site. There is nothing disturbing you or your visitors.


Why should I purchase an addfree edition?

You can remove all the links and can present your website to my live demos (When the site use my counter and it does not outcast to german law) You will help that project with buying an addfree edition.


How do I get the absolute path?

A: The absolut path means the exact place on the filesystem. You can use the help of php to get this path. Just create a file called "info.php" into that dir where you copied the counter and fill that file with this code:
  <? echo dirname($_SERVER['SCRIPT_FILENAME']) . "/"; ?>
  
Open that file in your browser. The url is depending on the folder where you copied the info.php. For example http://www.your-homepage.com/info.php, http://www.your-homepage/counter/info.php or anything else. Set the result you see in the browser as absolute path in the counter.php. This setting is important that the counter will not get any problems, when your website is working with different levels of folders.


How do I get the http path?

A: The http path, is the path you will enter in your webbrowser to reach the counter files, you but on your webspace. When you put the counter files in the folder "/counter" the http path would be like "http://www.your-homepage.com/counter/".


What does IP Lock mean?

The IP lock prevents the counter from re-counting a single visitor multiple. You can set this time period as seconds.


How to set file permission?

There are servers where you do not need to set the file permission. You may try first. When you get some errors, you know that you have to change the permissions. Usually you can change the files permissions right in your ftp client. As the different applications work in a different way, search for "file permissions", "chmod" or something similar. Then you should find a way for change the file permissions.


How to include the counter in .html files?

A: You can edit the .htacces file and say to your server to parse .htm and .html files. Just create a new file with this content:
  AddType application/x-httpd-php .php .php4 .html .htm
  
Save this file as .htaccess in your home directory. (the . before the file name is needed, no typing error). This solutions does not work for every webhoster. When it does not works, please ask your webhoster how to parse .html files.


How to create the tables with phpmyadmin?

A: When you are not familiar with phpmyadmin you should use the textfile-based counter. Otherwise go in phpmyadmin, select your database (when not default) and click SQL on the navigation. Enter the the SQL code and perform it. Thats all.


How to set the database connection?

A: You will get host, username, password and database name from your webhoster. Just enter these informations into the counter.php.


How to change the counter values?

A: This depends on the counter version.

Textfile version:

Open the counter.txt. Have a look at the first row. It may looks like this:

210:1||209:12||31:13||7:13||2008:13||13||12||1217277209

Now you have to compare the fields which are seperated by : and ||.

210:NUMBER TODAY||209:NUMBER YESTERDAY||31:NUMBER WEEK||7:NUMBER MONTH||2008:NUMBER YEAR||NUMBER TOTAL||NUMBER RECORD||NUMBER OF SECONDS OF RECORD DATE

If you like to change the date format of the record, you need the number of seconds. Here you can use a little php Script for help:

<?
echo strtotime("2007-10-01");
?>


Just enter your date of choice and you will get the needed seconds.


MySQL edition:


Go with the phpmyadmin to the table "counter_values". Now you can edit the fields day_value, yesterday_value, week_value, month_value, year_value, all_value, record_date and record_value. This is done within minutes.



How can I support this project?

A: You can support that project in buying the adfree version. Otherwise you can do a paypal donation, when you like that project or like to support me.




How can I ask an other question?

Please write me an email or use ICQ Support.


How do I get ICQ support?

You have any questions. 110571324 is my icq number. As I amfrom germany please do not forget that I am living in a other timezone and that I am not 24 hours a day at my computer!


I can translate the counter to a new language

When you speak a language and can translate the counter to a new language you will get an adfree counter licence for free.


You like to have an adfree counter? Click here

Demo counter:

Ad Visitor Statistics
» 2 Online
» 6 Today
» 24 Yesterday
» 154 Week
» 92 Month
» 179 Year
» 321 Total
Record: 37 (01.02.2012)
(Free PHP Counter)



You like this counter?
Are satisfied with help and support?
You like to appreciate my work?
You like to support me?

Home | Why is it free? | Live Demos | AdFree Counter | Contact Us / Inprint

Copyright 2008 - free-php-counter.com