PHP established files, very simple

xiaoxiao2021-03-06  40

$ filename = "count.txt";

$ fp = fopen ($ filename, "r");

$ Num = FREAD ($ FP, FileSize);

Fclose ($ fp);

$ Num1 = $ NUM 1;

$ fp1 = fopen ($ filename, "w");

FWRITE ($ FP1, $ Num1);

Fclose ($ fp1);

?>

Build a count file. Each time you call plus one, no this file will be created automatically

转载请注明原文地址:https://www.9cbs.com/read-52500.html

New Post(0)