PHP Warning: Unable to load dynamic library 'c:\PHP\extensions/php_mssql.dll' - The specified procedure could not be found. in Unknown on line 0

I'm running IIS on a Windows 2000 machine. I need to use the mssql_connect function and I haven't found a solution...

ahhh....

Thanks for any help!

Mark

    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = C:\php\extensions

    change \ to /

      Nah, that didn't help. I've tried 100 different ways to hit the correct file...I think there's something else to the issue.

      Thanks.

      Mark

        I've been having the exact same trouble on Win XP. Tried all kinds of combinations. Put the extensions on the c drive then the d drive. Slashes backwards and forwards. Nothing works.

        I'm able load extensions fine on my Win98 system, but not on XP.

          2 months later

          After working with this problem a while on Win XP I finally triumphed:

          Edit your \WINDOWS\php.ini file and do this:

          ; Directory in which the loadable extensions (modules) reside.
          ; extension_dir = ./
          extension_dir = "C:\Program Files\PHP\extensions"

          Also for a nice encryption extension php_mcrypt.dll go here:

          http://dev.deepsource.ch/index.php?Mode=LibMCrypt

            Try this:

            Copy "ntwdblib.dll" from your c:\php\lib (4.1.x) or c:\php\dlls (ver 4.2.0)

            to C:\WINDOWS\System32 (WinXP)or C:\WINNT\System32

            Restart your IIS or Apache. I tried this on WinXP, it works.

            webmaster@terago.ca
            TeraGo Networks Inc.

              18 days later

              Verify if protection properties of extensions directory are set for your:
              -Internet Guest Account
              or
              -Everyone Account
              are set to for read and execution rights.

                a month later

                Great, this really works!

                Priit


                Author: TeraGo Webmaster (cpe0030ab06f454.cpe.net.cable.rogers.com)
                Date: 2002-05-07 14:44:33

                Try this:

                Copy "ntwdblib.dll" from your c:\php\lib (4.1.x) or c:\php\dlls (ver 4.2.0)

                to C:\WINDOWS\System32 (WinXP)or C:\WINNT\System32

                Restart your IIS or Apache. I tried this on WinXP, it works.

                webmaster@terago.ca
                TeraGo Networks Inc.

                  17 days later

                  Thanks so much for your suggestion. You saved me hours of work.

                  Dude, you rock.

                  Slush

                    Hi Mark / Other

                    Did you manage to sort out your prob? I am having the same problem. Tried copying dlls to system32, checked rights, tried slashes, tried caps/lower case.

                    Environment: IIS 5.x, PHP 4.2.2, MS XP Prof.

                    There is no problems if you install PHP 4.0.6

                    Any help will be appreciated.

                    Marius

                      "Unable to load dynamic library"

                      If you have this error, you have two solutions for this problem:

                      1) Copy all dll's from the php extensions directory (eg. c:\php\extensions) and set the extension_dir = ./ in your php.ini, or

                      2) In the php.ini set extension_dir = relative path from the php.ini (eg. c:\winnt) to the php extensions directory (eg. c:\php\extensions).
                      Example: extension_dir = ./../php/extensions

                      And now activate your extensions in the php.ini
                      Try php -m in line of commands, to verify if extensions are ok :-))

                      Notes:

                      The extension_dir path is like Unix path's (replace all \ to /)
                      In extension_dir, you simplest need the relative path from php.ini to php extensions

                        Write a Reply...