Here is a Nice "Counter" Code I've made.
Create a New PHP Page, and Insert the Fallowing Code
PHP Code <?php
//Coded by Keith - http://www.anelectron.com
//(C) Copyright 2007 Keith Codes™. All Rights Reserved.
$file = "counter.txt";
$fp= @fopen($file,"r+"); //this opens the file
$myCounter = (int)fgets($fp,10000); //
++$myCounter; //
rewind($fp);
fwrite($fp,$myCounter); //this will write the value
fclose($fp);
echo $myCounter; //this shows the value
?>
And Insert the Fallowing Code into a Space for the Counter to Show up. Make sure you put it in a valid area for PHP Code.
PHP Code <?php
include("counter.php);
?>
If you have any Problems while using this Code, Please PM me or Reply to this Post for Support.
Thanks,
Keith
Edited by Keith : September 10, 2007, 1:34 am
-----------------------
 |