M
Maljonic
Guest
I need a clock (visitor counter) now and I can't make much sense out of the FAQ links, some of it doesn't work at all. Can you help me with where to get one and what I have to do with it when I do get it?
<?php setcookie ("Visitor", "visited", time()+86400); ?>
<?php
// Counter By Matti Kolu ([url]www.mk.st[/url])
if(isset($Visitor))
{
if ($Visitor=="visited")
include "counter.txt";
}
else
{
$laggtill = fopen("counter.txt","r+");
$plussa = fread($laggtill, filesize("counter.txt"));
fclose($laggtill);
$plussa += 1;
$laggtill = fopen("counter.txt","w+");
fputs($laggtill, $plussa);
fclose($laggtill);
include "counter.txt";
}
?>
I've done the CHMOD bit now and pasted the other bits in where you said. The first line at the very top of my index page and the rest nestled in the code that is highlighted when I have the cursor on the design veiw where I want the clock to go; the background is black btw if that makes any difference.Originally posted by Jonty
Hmm, I'm not really sure what's wrong. There are some instructions on you to CHMOD a file in CuteFTP here. Do you have a link to the file where the counter should appear?
Sorry about the delay
. . .
<h6 align="left"><font size="+7">[b]<font color="#CC3399">Maljonic's Dreams</font>[/b]</font></h6>
<span style="color:#FFFFFF">
<?php
// Counter By Matti Kolu ([url]www.mk.st[/url])
if(isset($Visitor))
{
if ($Visitor=="visited")
include "counter.txt";
}
else
{
$laggtill = fopen("counter.txt","r+");
$plussa = fread($laggtill, filesize("counter.txt"));
fclose($laggtill);
$plussa += 1;
$laggtill = fopen("counter.txt","w+");
fputs($laggtill, $plussa);
fclose($laggtill);
include "counter.txt";
}
?> </span></td>
<td width="13"></td>
. . .