Could you put in [ PHP] [/PHP] tags please... (no space obviously) Makes me much easier to read.
Thanks!
P.S. Include a step saying the file it's writes to must be CHMOD'd so it is writable please

.
Edit:
PHP Code:
include ("http://www.yourwebsite.com/whos-online.php");
at the bottom, would be better if it was
PHP Code:
include ("/home/absolute/path/to/the/directory/whos-online.php");
Edit: Please post where you got it from:
http://forum.statcounter.com/vb/sho...524&postcount=5