Click to See Complete Forum and Search --> : Extension problems XP Pro, but win2k fine


WaveyDavey
03-23-2004, 07:43 AM
Trying to load the mssql.dll extension.
Works great on Win2k (clean machine), but fails miserably on XP Pro box.
Assume is is a DLL location issue, but cannot for life of me see what.
Tried changing extension_dir to no avail.
Tried copying mssql.dll to php native directory, and windows\system32, no joy.
Tried copying NTWDBLIB.DLL to same, no joy.
On win2k, locations are as follows:
php_mssql.dll in c:\php\extensions and c:\php (copied up 1 level)
ntwdblib in c:\php\dlls and c:\php and c:\windows\system32
php.ini in c:\php only
extension_dir is "./"
extension=php_mssql.dll uncommented in php.ini
Works a treat

On XP Pro:
php.ini in c:\php4 (native php directory)
php_mssql.dll in c:\php4 c:\php4\extensions
ntwdlib.php in c:\php4 c:\php4\dlls
extension_dir is "./"
extension=php_mssql.dll uncommented
Error on executing php is
- unable to load dll. get Unable to load dynamic link library './php_mssql.dll'
Can anyone specifically state
a) what dll's are required to load the mssql extensions (ie am I missing some ? )
b) where should they go

rbarrett
07-13-2004, 01:16 AM
Here is what I have on my XP Pro machine:

php.ini in c:\WINDOWS
php_mssql.dll in c:\WINDOWS\system32 c:\php4\extensions
ntwdlib.php in c:\WINDOWS\system32
extension_dir is "c:\php\extensions"
extension=php_mssql.dll uncommented


Hope this helps!

Robert