====== Making a counter in PHP ======
If you search "free counter" in internet, you will probably find thousands of supposed websites that offer "free counters". The reality is that those free counters doesn't offer any free counter, and nobody does: advertisments, sms you have to pay... always there is a point they will have to request a fee for the service: to put an starting number (instead of zero), to "start" the service...
This little code is a counter that you can add to a website that supports running php and can be added into your website, and is as clean and easy to use as the professional ones. Just add the following code into your website:
And that's all!!! Moreover this code supports to add --via slight changes in the code-- support to many websites.
The source code of the file ''counter.php'' is as follows:
And don't forget to create a file called "contador.dat" that have to be writable by the user who runs apache --if you don't know what I am speaking of, just run ''chmod 666 contador.dat'' and that's all--.
You can check out this website: [[http://www.joseluisluna.com]] in order to see what it looks like.
And if you want just a free counter service, please ask me and I will create another Id for you!!!
--- //[[superman_ha_muerto@yahoo.com|Raul Luna Rodriguez]] 2011/03/29 13:30//