Re: Strange Error Reporting
| From: | CC Zona | Date: | Sun, 25 Mar 2001 16:21:09 +0000 |
| Subject: | Re: Strange Error Reporting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45495@lists.php.net to get a copy of this message | ||
In article <p04320407b6e35b98ce1b@[209.246.86.33]>,
webpharmacy@brokenhill.net (Kristofer Widholm) wrote:
> Warning: Bad escape sequence: \. in validate.inc.php on line 142
>
> CODE:
> Line 142: if (!eregi("index\.php",$PHP_SELF)) {
> blah blah blah;
> }
>
> I didn't know there was any other escape sequence possible in RegEx!
In a way, there is another "escape": using square braces.
eregi("index[.]php",$PHP_SELF)
--
CC