Click to See Complete Forum and Search --> : PHP Warning: Unable to load dynamic libr


Anon
03-08-2002, 11:26 AM
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

Anon
03-08-2002, 11:46 AM
; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\php\extensions

change \ to /

Anon
03-08-2002, 12:10 PM
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

trube
03-08-2002, 11:09 PM
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.

Anon
05-06-2002, 12:11 AM
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

Anon
05-07-2002, 03:44 PM
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.

rostor
05-25-2002, 05:26 AM
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.

Anon
07-07-2002, 12:09 PM
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.

Anon
07-24-2002, 05:38 PM
Thanks so much for your suggestion. You saved me hours of work.

Dude, you rock.

Slush

Anon
07-27-2002, 05:27 AM
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

Anon
07-30-2002, 09:26 AM
"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