PDA

View Full Version : Visitor counter



Iiro
12-22-2005, 10:17 AM
What's going on my home page?
I have simple visitor counter, but now there's 1.2131214121312E+167 visitors on my site!

Here's the code I used:

<html>
<head><title>Taikasilma.com</title>
<link rel="stylesheet" type="text/css" href="tyylit.css">
</head>
<body>
<?php
$myfile = "kavijat.txt";
if(file_exists($myfile))
{
$var = fopen($myfile,'r+');
$visits = fgets($var);
$visits+=1;
fwrite($var, $visits);
fclose($var);
}
else
{
print "<span class=\"p\"><b>Tiedostoa $myfile ei

l&ouml;ydy...</b></span>";
die();
}
print "<span class=\"o\">K&auml;vij&ouml;it&auml; t&auml;ll&auml; sivulla:

$visits</span>";
?>
</body>
</html>

So can anyone help?

Twey
12-22-2005, 10:25 AM
Haha :) What does the textfile have in it?

Iiro
12-22-2005, 10:46 AM
Inside textfile i had this before counting:




0

and after counting:


1.2131214121312E+167

Iiro
12-22-2005, 11:29 AM
Ok, I have now 012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.213121412131 2E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214 121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.21 31214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+1 51.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.21312141213 12E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+35012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.213121 4121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2 131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312 151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+320121312141 21312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+3101213 1214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+36 012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.213121412131 2E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214 121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.21 31214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+1 51.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.21312141213 12E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+35012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.213121 4121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2 131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312 151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+320121312141 21312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+3101213 1214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+37 012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.213121412131 2E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214 121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.21 31214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+1 51.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.21312141213 12E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+35012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.213121 4121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2 131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312 151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+320121312141 21312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+3101213 1214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+36 012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.213121412131 2E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214 121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.21 31214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+1 51.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.21312141213 12E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+35012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.213121 4121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2 131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312 151.2131214121312E+151.2131214121312E+34012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+320121312141 21312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+3101213 1214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+38 012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214121312E+32012131214121312151.2131214121312E+151.213121412131 2E+31012131214121312151.2131214121312E+151.2131214121312E+33012131214121312151.2131214121312E+151.2131214121312E+31012131214121312151.2131214121312E+151.2131214 121312E visitors!!!! I have probably most popular site over the Internet!!! :p

BLiZZaRD
12-26-2005, 09:11 AM
Not sure what is going on in your counter there.... simple is not always better ;)

However, simple is the key and ease of use too!

Take a look at this one here: BBclone (http://bbclone.de/)

It is 100% free, full of support and options and I have been using it on my site (average 5000 visitors a day) for 3 months with ZERO problems... detailed stats as well as your ordinary counter ;)