PHP Extension problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I tried to search for a solution to this, but I couldn't find one.
Maybe I didn't look in the right place, but whatever....

Here is the problem - I have an extension "Myextension" created using
SWIG from C++ code. I put this in my c:\php5\ext directory and pointed
php.ini to load extensions from that directory. This is fine.

However this extension depends upon some other custom DLLs I have
coded in C++. The only way that the original extension loads is if
these custom DLLs are in the C:\Windows\System32 folder. This is not
an ideal solution for distribution however.

So I've tried changing my System Path to include a custom directory
where these DLLs can be stored. That doesn't work. PHP has to know
where to find these DLLs that the extension depends on. I just don't
know how to give it that information. Am I missing something in

Any help appreciated, thanks...

Re: PHP Extension problem

On 13 Aug 2004 09:55:44 -0700, (John) wrote:

Quoted text here. Click to load it

 Adding to PATH /is/ the correct way. Is your webserver seeing the environment
you expect? e.g. check it in phpinfo().

< Space: disk usage analysis tool

Re: PHP Extension problem

I had tried adding it to my path, but it didn't work. Then I realized
I needed to reboot after making my change, so that PHP would recognize
the new path! Silly of me!

Thanks Andy

Quoted text here. Click to load it

Site Timeline