On Nov 20, 2:00 am, David Gillen <bel...@RedBrick.DCU.IEwrote:
>
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 objects.
What I'm wondering is there anyway in PHP to load the DLL and make use
of it's API functionality?
There's more than one way it can be done. First, if you are running
PHP
on a Windows server, you can call the COM objects directly:
http://php.net/COM
Alternatively, you may be able to wrap your DLL into a PHP extension,
which
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
the
API as a Web service, but that will have to be done in whatever
language
the server on which the DLL resides supports.
Cheers,
NC