Cảm ơn bạn đã đến thăm !
Cai nay no khong chay !
$fp = fopen("compteur.txt","r+"); $nbvisites = fgets($fp,10); if ($nbvisites=="") $nbvisites = 0; $nbvisites++; fseek($fp,0); fputs($fp,$nbvisites); fclose($fp); echo "$nbvisites"; ?>
Nbre visites
Cai nay no khong chay !
$fp = fopen("compteur.txt","r+"); $nbvisites = fgets($fp,10); if ($nbvisites=="") $nbvisites = 0; $nbvisites++; fseek($fp,0); fputs($fp,$nbvisites); fclose($fp); echo "$nbvisites"; ?>
Nbre visites