zubit.com technologies
zubit technologiesInternet Design Development ServicesInternet ServicesInternet Productszubit newszubit company informationzubit Contact InformationLogin        

Simple PHP counter -PHP Scripts

Here is a simple example of a php counter script:



The output of the above example is here: 1222


This 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





Home   |   Services   |   Products   |   News   |   About Us   |   Contact Us   |   Login

XHTML CSS