example this is a code for logging visitors to your site:
Code:<?php //using the date() function $time = date("F jS Y, h:iA"); //$remote_addr is PHP variable to get ip address $ip = $REMOTE_ADDR; //$hostname show the users host $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); //$http_referer is PHP variable to get referer $referer = $_SERVER["HTTP_REFERER"]; //$http_user_agent is PHP variable for browser $browser = $HTTP_USER_AGENT; //what page they came from $page = $_SERVER['REQUEST_URI']; //use the fopen() function $fp = fopen("log.php", "a"); //using the fputs() function fputs($fp, " I WANT TO CONVERT SOME HTML TO GO HERE!!!! "); fclose($fp); ?>