PHP 5.0.4
Apache 2.0
Windows XP

I copied the DLL file php_exif.dll into the same folder where my other DLL files are located to be found; added that path to the Windows PATH environmental variable, and even copied the files into C:/Windows/system32

The moment I restarted Apache I get this error:

Unable to load dynamic library "./php_exif.dll"

I was sure I put the file everywhere where it could be located, and Apache seems to have no problems locating other DLL files in the same folders where php_exif.dll is found.

Help?

Thanx
Phil

    You need to load the mbstring extension first. In particular, configure php.ini such that "extension=php_mbstring.dll" is placed before "extension=php_exif.dll".

      IN your php.ini
      change your include_path to your extension directory.
      right now it is probably "./"
      it should be "c:\php\ext\" or whatever your extension directory is

        also, if exif is some type of dll that requires a 3rd party program, you might need permissions on that programs directory.

        For example, I had this problem loading php's oracle dlls, because I needed oracle's directory to have read write permissions for IUSR (IIS).

          laserlight wrote:

          You need to load the mbstring extension first. In particular, configure php.ini such that "extension=php_mbstring.dll" is placed before "extension=php_exif.dll".

          Perfect!!! Thank you it works!
          Phil

            6 years later
            laserlight;10648258 wrote:

            You need to load the mbstring extension first. In particular, configure php.ini such that "extension=php_mbstring.dll" is placed before "extension=php_exif.dll".

            Many thanks too!

            keywords for search engines: Zend framework php.exe error PHP Warning PHP Startup php_mbstring.dll missing unable to load dynamic library php_exif.dll

              Write a Reply...