-Drowning
Pool |
,
Sermon
if(file_exists("counter.dat")){
$exist_file = fopen("counter.dat", "r");
$new_count = fgets($exist_file, 255);
$new_count++;
fclose($exist_file);
// print("$new_count people have visited this page");
$exist_count = fopen("counter.dat", "w");
fputs($exist_count, $new_count);
fclose($exist_count);
}
else{
$new_file = fopen("counter.dat", "w");
fputs($new_file, "1");
//print("1 person has visited this page");
fclose($new_file);
}
?>
|