Connecting Tech Pros Worldwide Forums | Help | Site Map

Dlls within PHP

David Gillen
Guest
 
Posts: n/a
#1: Nov 20 '08
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?

D.
--
[insert first line here]
[insert the second line here]
[insert third line here]

NC
Guest
 
Posts: n/a
#2: Nov 20 '08

re: Dlls within PHP


On Nov 20, 2:00 am, David Gillen <bel...@RedBrick.DCU.IEwrote:
Quote:
>
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
Closed Thread