Create a Unique Counter


Put this code in the top of the document, before all HTML code.
PHP Code:
$logfile="/counter.log";
$counted=$_COOKIE["counted"];
if(!
$countedsetcookie("counted",1,time()+86400); 
Now paste this code were you want the counter to appear, it's text only.

PHP Code:
$num=file_get_contents($logfile);
if(!
$counted){
$fp=fopen($logfile,"w") or die("OMFG");
$num++;
fwrite($fp,$num);
fclose($fp);
}
echo(
$num); 

Now create a file called counter.log and CHMOD it to 646.

Quick Tutorial Search