Re: function preg_match()

From: Date: Wed, 25 Jan 2006 16:30:07 +0000
Subject: Re: function preg_match()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229246@lists.php.net to get a copy of this message
Denyl Meneses Guillén wrote:
sorry , what is PCRE ? I looking my configuration with phpinfo() and not exist PCRE or similar .
http://us2.php.net/pcre
I'm using PHPmailer and and inside it calls to function preg_match , but i want to run a simple example ...:: denyl.php <?php $subject = "abcdef"; $pattern = '/^def/'; preg_match($pattern, $subject, $matches, PREG_OFFSET_CAPTURE, 3); print_r($matches); ?> and I get this : Fatal error: Call to undefined function preg_match() in /usr/local/apache133/htdocs/denyl.php on line 4 my phpinfo() is : http://www.olvacourier.com/php.php Thanks, Denyl. ----- Original Message ----- From: "Melanie Maddix" <melanie.maddix@enermajica.com> To: "Denyl Meneses Guillén" <dmeneses@olva.com.pe>; <php-general@lists.php.net> Sent: Wednesday, January 25, 2006 7:56 AM Subject: RE: [PHP] function preg_match() [snip] When I try to use preg_match(), I get this... Fatal error: Call to undefined function preg_match() in /usr/home/www/library/defines.php on line 25 [/snip] Do you get the error with all PCRE functions? Take a look at your PCRE settings using phpinfo().
-- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com

« previous php.general (#229246) next »