"; //** Print image string echo (""); echo("­Ó±´³XªÌ"); $fp = @fopen($filename, "w"); fwrite($fp, $count); fclose($fp); } if ($incyes == 0) { $count = fread($fp, filesize($filename)); #jj echo("§A¬O²Ä $count ­Ó±´³XªÌ"); echo("§A¬O²Ä"); #jj //** Get length of hits [i.e. length of 456 is 3] $length = intval(strlen($count)); //** Go though each number and get create img tag for each number for ($i = 0; $i < $length; $i++) #jj $img_string .= ""; //** Print image string echo (""); echo("­Ó±´³XªÌ"); fclose($fp); } } # if (!fp) { # $fp = fopen($filename, "r+"); # } # if (!fp) { # echo ("$filename could not be created! This counter can not function properly without it. Please create the file manually, then type chmod 777 (filename here)\n"); # } if ($countmethod == 0) { routine1(1); } if ($countmethod == 1) { if (!isset($_COOKIE['countit'])) { setcookie("countit", ""); routine1(1); } if (isset($_COOKIE['countit'])) { routine1(0); } } if ($countmethod == 2) { if (!session_is_registered("countit")) { routine1(0); } else { session_name("countit"); session_register("countit"); session_start(); routine1(1); } } ?>