* $fichier = 'compteur.txt'; * * * $test = fopen($fichier, 'a+'); * fclose($test); * * * $nombre = file($fichier,'w+'); * $compt = $nombre[0] + 1; * $new = fopen($fichier,'w+'); * * fwrite($new, "$compt \n"); * * fclose($new); * * if($compt == 1) * { * print '; * } * else * { * print ''.$compt .' vistiteurs :)!'; * } * ?>