Re: Re: Matching *exact* string?
| From: | Nick Wilson | Date: | Sun, 31 Oct 2004 11:55:54 +0000 |
| Subject: | Re: Re: Matching *exact* string? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200764@lists.php.net to get a copy of this message | ||
* and then Aidan Lister declared....
> I cannot fathom why you would use preg_match for this.
>
> This will get an "exact match"...
> if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; }
Ahh.. an oversight. The script has been cobbled together from a previous
version that supported partial matches. I'd just missed the obvious,
thankyou ;-)
> Despite this being the worst idea I've ever seen, combined with a true lack
> of understanding, I wish you well.
There is no need to be insulting. I doubt very much anyone thinks your a
clever guy for acting like a twat on a mailing list.
--
Nick W