
Script: php Click Counter
Rights: © Revived Wire Media - revivedwire.com
[Features]:
With php Click Counter, you can store and display clicks on any link throughout
your website. In addition, you can also mask your links with the generated code.
php Click Counter uses a flat-file database system so access to a MYSQL or similar
database is not a requirement. The administrative console will allow you to view
your link statistics, remove and reset your added links, show and copy your
generated Click Counter URL as well as the ability to download and restore your
flat-file db files. This application also uses an animated, collapsible navigation
system to attractively toggle between tasks.
[Installation]:
Open the file settings.php and set these variables:
$settings['system'] - set to 1 if your website is on a server under Linux
(most servers are), set to 2 if it is Windows (your SERVER, not your computer).
If you are not sure which operating system your server runs under try with
$settings['system'] set to 1 first or consult your web hosting company.
$settings['aname'] - this will be your username for the admin panel. Change
it from the default username Click. Use only letters a-Z, A-Z and numbers 0-9
$settings['apass'] - this will be your password for the admin panel. Change
it from the default password Counter. Use only letters a-Z, A-Z and numbers 0-9
$settings['click_url'] - set this variable to the URL of the click.php file as
it will be on your server. e.g. http://www.yoursite.com/Click_Counter_3.0/click.php
or http://www.yoursite.com/counter/click.php
$settings['logfile'] - set this variable to the URL of clicks.txt as
it will be on your server. e.g. http://www.yoursite.com/Click_Counter_3.0/db/clicks.txt
or http://www.yoursite.com/counter/db/clicks.txt, etc.
$settings['idfile'] - set this variable to the URL of ids.txt as
it will be on your server. e.g. http://www.yoursite.com/Click_Counter_3.0/db/ids.txt
or http://www.yoursite.com/counter/db/ids.txt, etc
Go to your FTP client and FTP to a folder where you will install php Click Counter.
Example: /public_html/counter
Corresponding URL: http://www.yourdomain.com/counter
Upload all php Click Counter files (excluding the "docs" folder) and CHMOD the
files clicks.txt and ids.txt to 666 (rw-rw-rw).
In your browser, browse to the folder where you have installed php Click Counter.
e.g. http://www.yourdomain.com/Click_Counter_3.0 or http://www.yourdomain.com/counter, etc.
[Displaying number of clicks on a web page]:
php Click Counter allows you to display the number of clicks on a link at your website.
To display number of clicks on your web page follow these two steps:
1. Place the following code between the <head> and </head> tags):
<script language="Javascript"
src="http://www.yourdomain.com/counter/display.php">
<!--
//-->
</script>
**If necessary, change http://www.yourdomain.com/counter/display.php to the URL of display.php
2. Place the following code into the section where you wish to display the
number of clicks:
<script language="Javascript">counter_display('LINK_ID')</script>
Replace LINK_ID with the ID number of the link you wish to display.
(ID's can be found in the Link Statistics section) For instance, to
display number of clicks on the link with ID 4 you would use this code:
<script language="Javascript">counter_display('4')</script>
 Branding Removal License(s)
If you would like to use our products without the "Powered by Revived Wire" logo (shown above), please consider purchasing a Branding Removal License(s) for $5.00 (USD).
One Branding Removal License(s) license is valid for one copy of a product for one website. Upon purchase, you will receive a PDF document which will thereby become your license moving forward.
Please click here for more information and to make your purchase 
|