Re: function preg_match()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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().



-- 
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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux