The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
for ($i = 0; $i < strlen($hits); $i++) {
should be:
for ($i = 0; $i < strlen($hits); $i++) {
I see what you mean, I missed that first time ..... it's late, lol.
--------------------------------------------------------------
hello to you
You are visitor no.
$counterstyle = "image";
$invisible = "no";
$height = "19";
$width = "15";
$hitsfile = "";
$images = "http://registration.freeola.net/user_includes/phpcounter";
if (!$hitsfile)
$hitsfile = dirname(__FILE__)."/hits";
if (!$images) $images =
dirname(__FILE__)."/images";
$images = str_replace($DOCUMENT_ROOT, "", $images);
if(file_exists($hitsfile) == TRUE) {
$hits = file($hitsfile);
$hits = $hits[0] + 1;
} else {
$hits = 1;
}
$fp = fopen($hitsfile, "w");
fwrite($fp, $hits);
if ($invisible != "yes") {
if ($counterstyle == "text") {
print $hits;
} else {
$digit = strval($hits);
for ($i = 0; $i < strlen($hits); $i++) {
print "
";}
}
}
?> to my site.
--------------------------------------------------------------
Upload and try that :o)
You need to make sure the file is just called "testcnt.php" and not "testcnt.php.html"
The file should have the extension ".php". NOT ".php.html", or any variants. ONLY ".php".
Secondly, you've somehow converted the < and > characters to their HTML escaped versions. This is used so you can actually display these < and > characters without confusing the browser thinking they're tags. Look at the source, you can see a lot of < and > things all over the place. These *MUST* be converted to < and > properly:
$lt; = <
$gt; = >
Finally, if I were you I'd give your HTML program (Front Page?) a good kick up the anus, preferably in the direction of the recycle bin.
Also, did you try and alter the code in any way???