| | All you do is copy this code into the page you want to display it on. CODE <?php $counterfile = "counter.txt"; $counter = file("$counterfile"); $c = $counter[0]; if (strlen($c) == 0) {$c=0;} $c=$c+1; $a = fopen("$counterfile", "w"); fwrite($a, $counter = ""); fputs($a, $c); fclose($a); echo ("$c"); ?> Make a file called 'counter.txt' in the same directory as the page the code is on. Remember to CHMOD your txt file to 666. (change the permissions to 666) |

