Php web page digital counter code. Php web page digital counter code this php counter is a simple interpreter code used to count the number of visits to a Web page, using a txt text file and phpfopen function for operations. Php Tutorial php web page digital counter code this php counter is a simple interpreter code used to count the number of visits to a Web page, using a txt text file and php fopen function for operations.
Php Tutorial webpage digital counter code
This php counter is a simple interpreter code used to count the number of web page visits. it is operated by using a txt text file and the php fopen function.
*/
$ Log = 'Log/count.txt ';
$ Count_img = 'IMG/counter ';
$ Fp = @ fopen ($ log, "r +") or die ($ log. 'the data file cannot be opened! ');
$ Count = fgets ($ fp, 64 );
Flock ($ fp, 2 );
$ Count = (int) $ count + 1;
Rewind ($ fp );
Fputs ($ fp, $ count );
Fclose ($ fp );
If ($ conf_showcount = '1 '){
For ($ I = 0; $ I $ Num = substr ($ count, $ I, 1 );
Echo '';
}
}
Perform operations by using the fopen function. Php Tutorial...