RE: [PHP] Problems with pattern matching

2001-04-20 Thread Jack Dempsey
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

[PHP] Problems with pattern matching

2001-04-20 Thread Alec Smith
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