View Full Version : PHP Scripts


Choccieholic
08-15-2005, 03:34 PM
Does anyone know where I could find PHP scripts for my website status? Like hits,people online,shoutbox? Thankyou.

Douglas
08-15-2005, 03:40 PM
hotscripts.com (http://www.hotscripts.com/)
and somewhere in the lissaexplains tutorials there is a online people counter

but for hits all you need is this:

$myFile=fopen('counter.txt','r');
$data=fread($myFile, filesize('counter.txt'));
fclose($myFile);
$theFile=fopen('counter.txt','w');
$content=$data+1;
fwrite($theFile, $content);
fclose($theFile);
echo "We have $content hits!";