function getCount()
{ $filename = "count.txt";
$fptr = fopen($filename, "r+") or die("Could not open count file!");
$num = fread($fptr, filesize($filename)) + 1;
$msg = "
";
$msg.= "
Visitor Number:
$num
";
$msg.= "
";
echo "$msg";
fseek($fptr,0); //set file ptr back to byte 0
fwrite($fptr, $num); //write count to the file
fclose($fptr); //close the file to flush buffers
}
?>
Computer Vision and Robotics Lab,UNR