[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

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Alec Smith
Perl to PHP is proving to be no big deal for me. I've only just started looking at PHP 3 days ago, and am already generating production code. PHP to Perl would most likely be a harder move since you'd have to add quite a few new concepts to your knowledgebase. In general, I'd have to say that PHP