This code should email when somebody hits on my page with there ip, date and the referring page. Sounds great I love it but I can't get it to work no how! The page says
"Fatal error: Call to undefined function: setlogging() in /home/virtual/site211/fst/var/www/html/php.php on line 2" and this is what the code looks like,
<?
SetLogging(1);
function AccessHit() {
$NL = "\n";
$H = getLastHost();
$R = getLastRef();
$To = "studio@ronschmidtphoto.com";
$Sub = "Page Accessed";
$D = Date("D d M y h:ia",time());
$Msg = $H.$NL.$R.$NL.$D;
mail($To,$Sub,$Msg); }
?>
It doesn't seem to like this Setlogging(1) command. Mind you I don't know much about php. Thanks and any help would be greatly appreciated!