Tobias Tobias - 4 months ago 38
HTML Question

Backend increment counter PHP or javascript

After researching I am not really sure which is a matching solution for my project. I want a serverside number incr. counter, that daily resets.
Every website vistor should see the same number of the counter. Is there
a PHP script or javascript meaningful? Can I store the daily counts in a txt.-file without using a database like MySql?


It would be helpful if you specified a little further what you are trying to achieve. What is the counter counting? number of visits? number of clicks?

You could store this in a text file. I wouldn'r recommend it thought, it will be bulky and you will run into trouble when several updates takes place simultaneously. A better solution if you want an easy and file-based database, check SQLite.