The function used by php to calculate the number of web page visitors by storing data in files. Php file storage data Statistics: jishujishu.txt; if (! File_exists ($ jishu) {$ kjsfopen ($ jishu, w); fwrite ($ kjs, 0); fclose ($ kjs );} functionkaishi ($ jishu php function for counting the number of webpage visitors using file storage data
$ Jishu = "jishu.txt ";
If (! File_exists ($ jishu ))
{
$ Kjs = fopen ($ jishu, "w ");
Fwrite ($ kjs, 0 );
Fclose ($ kjs );
}
Function kaishi ($ jishu)
{
$ Js = fopen ($ jishu, "r ");
$ Du = fread ($ js, 8 );
Fclose ($ js );
$ Du + = 1;
Echo "you are the first guest on this site". $ du !!! ";
$ Xie = fopen ($ jishu, "w ");
Fwrite ($ xie, $ du );
Fclose ($ xie );
}
Kaishi ($ jishu );
When using jishu1_jishu.txt; if (! File_exists ($ jishu) {$ kjs = fopen ($ jishu, w); fwrite ($ kjs, 0); fclose ($ kjs );} function kaishi ($ jishu...