/* Don't forget to CHMOD $file to 777 */
$file = "my_hits.txt";
// Open $file and read number of hits
$fp = fopen($file,"r");
$hitline = fgets($fp, 4096); //gets one line at a time
$hits=trim($hitline);
fclose($fp);
if (isset($_COOKIE[bbfcount])) {
} else {
$hits++;
setcookie("bbfcount", "$hits", time()+60*60*24*30);
// setcookie("bbfcount", "$hits", time()+30);
// Open $file and write new number of hits
$fp = fopen($file,"w");
fwrite($fp, $hits);
fclose($fp);
}
//print("Visitor number $hits");
//print_r($_COOKIE);
?>
/*BROWSER DETECTION*/
include 'browser_detection.php';
$browser = browser_detection('browser');
$loadaddr = (substr($browser,0,2) == "ie") ? "ie.home.htm" : "opera.home.htm";
?>
en route to pain v. 2.5.1b - the official blinded by fear website - www.blindedbyfear.com