Simple PHP counter -PHP ScriptsHere is a simple example of a php counter script:The output of the above example is here: 1222This is a very simple script that opens a file for reading using the php function fopen, then fread to read the contents. We then add 1 to the number stored in this file and we open the file for writing making sure to lock the file using flock, so that it is not being written to at the same time. Please feel free to use these examples and if you find yourself in need of assistance, zubit.com is in the business of providing quality web application development and would be very happy to provide you with a quote. We also provide a free counter system with statistic logging. Check it out here Back to main php scripts list |