Dlls within PHP

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

Threaded View
I've a dll which contains an API to a document server. The documentation talk
about in MS Visual studio adding a reference to the dll in the under COM

What I'm wondering is there anyway in PHP to load the DLL and make use of it's
API functionality?

[insert first line here]
[insert the second line here]
[insert third line here]

Re: Dlls within PHP

David Gillen wrote:
Quoted text here. Click to load it

Somewhat yes.

You will need to create an extension for it [1]. That way you should be
able to access all the functionality provided by the DLL.

[1] http://www.php.net/manual/en/internals2.ze1.zendapi.php

Jensen Somers <http://jsomers.eu
Email: -http:// +jensen@

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying to
produce bigger and better idiots. So far, the Universe is winning."
   - Rick Cook, The Wizardry Compiled

Re: Dlls within PHP

Quoted text here. Click to load it

There's more than one way it can be done.  First, if you are running
on a Windows server, you can call the COM objects directly:


Alternatively, you may be able to wrap your DLL into a PHP extension,
will also require that PHP be running on a Windows machine.

If PHP must run on a non-Windows platform, you may be able to expose
API as a Web service, but that will have to be done in whatever
the server on which the DLL resides supports.


Site Timeline