Unable to load dynamic lybrary

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Unable to load dynamic lybrary

Post by harrisonad »

OK, I am getting frustrated on this one.
I have new installation of php on my pc, and i setup php.ini the same way as before but i got errors on dll extensions
Unable to load dynamic library 'C:\php\extensions\php_xxxx.dll'
I have set the ff. correctly
- extension_dir = "C:\php\extensions"
- copied the extensions folder to C:\php
- checked that all dll files are inside this folder

But the error stil persists.
Any idea?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

What version of PHP are using and what version of PHP did you use these DLL's on before? It could be a version mismatch.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

My os was reinstalled and this is clean installation of PHP 4.11.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

try changing your slashes to the other direction like so.

Code: Select all

extension_dir = &quote;C:/php/extensions/&quote;
I have found it useful to add the trailing slash as well.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

wew! am i a big fat jerk!
I forgot to copy the dll folder to "C:\php" because some dll extensions need additional 'bundled' dll found inside dll folder of distribution package. One of which is 'php_mssql.dll' which is what i am loading.
Now the errors are gone.
Thanks for all your replies.
Post Reply