preg_quote raising an error.
| From: | Paul O' Connor | Date: | Wed, 14 Jun 2000 09:41:14 +0000 |
| Subject: | preg_quote raising an error. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-399@lists.php.net to get a copy of this message | ||
Hi,
I am running PHP Version 3.0.16.
I am working through some sample code that implements a discussion forum
with a MySQL database.
I am having difficulties with the following lines of code.
function varname($varname) {
return preg_quote("{".$varname."}");
}
in that the following errorn is being generated:
Fatal error: Call to unsupported or undefined function preg_quote() in
include/template.inc on line 298
I've looked up preg_quote in the PHP manual and it says that this function
was added in 3.0.9. I am running 3.0.16.
BTW - I'm running on apache with Windows NT ( Is it possible I'm missing
some extension?)
Any ideas anyone?
Regards,
Paul O' Connor.