By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,157 Members | 891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,157 IT Pros & Developers. It's quick & easy.

Unable to load module... 2 Extension Directories possible? (WINDOWS)

P: n/a
I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 3 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
-Lost wrote:
I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?
Dammit. It figures, you exhaust every possible example (or at least you
think you do/did) and then you request help only to find the answer
yourself moments later.

If anyone cares, the solution was to copy the DLL into both the
extension directory and the system32 directory.

That seems *really* weird to me, but it solved the problem.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Jun 3 '07 #2

P: n/a
On Sun, 03 Jun 2007 18:40:32 -0400, -Lost <ma****************@techie.com>
wrote:
>I had the PHP Startup: Unable to load dynamic library
'C:\php\ext\php_json.dll' - The specified module could not be found.

I finally figured out the error. The problem is that the DLL relies on
several other DLLs found in the C:\WINDOWS\system32\ folder.

Now, the problem is this... I do not want to copy 20+ extensions to my
system32 folder, nor do I want to copy 50+ DLLs from my system32 to my
extension directory.

Does anyone know of a method to get around this? Something along the
lines of having it check both the extension directory and the system32
folder for the associated DLLs?
Extension DLLs all have to be in the same place, but any DLLs that *they* need
can be loaded from anywhere listed in the PATH environment variable (as seen by
the webserver).

The system32 directory is always on PATH, but is not a good place to put your
own DLLs. Pick a directory and put the DLLs in there, and add it to PATH.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Jun 3 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.