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@xxxxxxxxxxxxxx>
To: "Denyl Meneses Guillén" <dmeneses@xxxxxxxxxxx>;
<php-general@xxxxxxxxxxxxx>
Sent: Wednesday, January 25, 2006 7:56 AM
Subject: RE: 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@xxxxxxxxxxxxxxxxxxxxxxxxxxx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php