[Techtalk] PHP not finding a function

Aaron Malone aaron at munge.net
Thu Feb 19 12:51:54 EST 2004


On Thu, 19 Feb 2004 12:05:48 -0500, Katie Bechtold wrote:
> Fatal error: Call to undefined function: mcrypt_module_open()

The problem is most likely that PHP isn't loading the mcrypt module; it
doesn't realize it's there.  Take a look at your php.ini file (in debian
sid, this is at /etc/php4/apache/php.ini; I'm not sure about woody).  If
there is a line like:
;extension=mcrypt.so
then remove the semicolon (which comments out the line).  If there is no
such line, then add one (without the semicolon, of course).

Alternatively, you can load that module explicitly in your PHP code,
like so: 
<?php dl("mcrypt.so"); ?>

-- 
Aaron Malone
aaron at munge.net


More information about the Techtalk mailing list