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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • -Lost

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

    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\syst em32\ 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.
  • -Lost

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

    -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\syst em32\ 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.

    Comment

    • Andy Hassall

      #3
      Re: Unable to load module... 2 Extension Directories possible? (WINDOWS)

      On Sun, 03 Jun 2007 18:40:32 -0400, -Lost <maventheextraw ords@techie.com >
      wrote:
      >I had the PHP Startup: Unable to load dynamic library
      >'C:\php\ext\ph p_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\syst em32\ 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 :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      Working...