|
Answer» I found a web site that shows you how to make a Hit Counter for a web pae.
Ijust want to know if this sounds right befor I start?
It tells me to take my index.html file witch is my Home Page and re name it index.php so I did this.
Then were ever I want my Hit Counter to be displayed I type this code
$FILENAM ="counter.txt; $fd = fopen [filename,"r"]; $STRING = frad [$fd, filesize [$filename]]; echo "$string"; fclose[$fd];
$fd = fopen [$filname , "w"] $fcounted = $fstring + 1 ; $fout= FWRITE [$ed , $fcounted] : fclose[$ed] ;
?>
Then save it.
Then it tells me to open Notepade and save a blank text file called counter.txt. And it tells me to save this to the same place.
What I want to know is all the php code it says to type did I type it right or do I need any Spces anywere???
It is hard to see if I should put a space anywere ELS.
I think I typed it right but I thought I would ask if anyone els did this before?There an error:
$filenam ="counter.txt;
missed ": fixed:
$filenam ="counter.txt";
|