Re: Call to undefined function mcrypt_module_open() in PHP5 on Windows 2003



The manual explains how to set the location of php.ini so have another
look.
* http://php.net/manual/en/install.windows.manual.php
I suggest you set PHPRC. The docs do not say php.ini is looked for in
PATH, so, this is indeed the main issue here.

Regarding that user comment, it was read wrong. They did not mean set
the extension directive. To make things simple, ignore that user
comment (in fact, I just deleted it ;-)

I can't fully decipher your php.ini but you do want this:

extension_dir = "c:\php\ext"

The fact that the php.ini location says "C:\WINDOWS" is telling us that
php.ini is not being read at all. It looked in the various places as
mentioned in the documentation and could not find a php.ini and
C:\WINDOWS is the last location it looked. So, all default values are
used as no php.ini is being read.

.