hostname;
echo "AOHell user";
}
else
{
echo $hostname;
echo "Not on AOHell";
}
-Original Message-
From: Alec Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 9:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Problems with pattern matchi
I'm attempting to get something like the following to match anything from
aol.com so that I can handle AOL users differently than users from other
ISPs:
$hostname = gethostbyaddr($REMOTE_ADDR);
if (eregi(".*\.aol\.com.*", $hostname))
{
echo $hostname;
echo "AOHell u
2 matches
Mail list logo