note 40767 added to ref.mail

From: Date: Sun, 14 Mar 2004 03:31:23 +0000
Subject: note 40767 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-66805@lists.php.net to get a copy of this message
You can use the following code to have your site send you an e-mail when you get a hit, and check the whois for the IP address of the hit. $current_date = date("F j, Y, g:i a"); $message = "From <a href='http://www.dnsstuff.com/tools/whois.ch?ip=" . $_SERVER['REMOTE_ADDR'] . "'>" . $_SERVER['REMOTE_ADDR'] . "</a> at " . $current_date; mail("webmaster@yoursite.com", "Hit",$message, "From: website@{$_SERVER['SERVER_NAME']}\r\n" . "MIME-Version: 1.0\r\n" . "Content-type: text/html; charset=iso-8859-1\r\n" . "X-Mailer: PHP/" . phpversion()); ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40767 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40767&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40767&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66805) next »