Re: function preg_match()

From: Date: Wed, 25 Jan 2006 19:16:01 +0000
Subject: Re: function preg_match()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-229240@lists.php.net to get a copy of this message
sorry , what is PCRE ? I looking my configuration with phpinfo() and not exist PCRE or similar . 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(). -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.22/238 - Release Date: 23/01/2006 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

« previous php.general (#229240) next »