Re: REG_BADPAT ERROR!

From: Date: Thu, 03 May 2001 11:49:30 +0000
Subject: Re: REG_BADPAT ERROR!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51255@lists.php.net to get a copy of this message
what version of PHP are you running? It works for me on PHP 4.0.4pl1. (CGI) but, you may try: $pattern = quotemeta("&amp;"); // see quotemeta in the manual ! ereg_replace($pattern, "&", $url); ----- Original Message ----- From: "Jason Murray" <Jason.Murray@melbourneit.com.au> To: "'Martin Bittner-Lamy'" <martinbl@videotron.ca>; <php-general@lists.php.net> Sent: 2001. május 3. 07:18 Subject: RE: [PHP] REG_BADPAT ERROR! > > and the line 236 is: $url=ereg_replace("&amp;","&",$url); > > BADPAT probably means "Bad Pattern". > > Try: $url=ereg_replace("\&amp\;","&",$url); > > Jason > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#51255) next »