Invoking functions from a DLL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Negligence
Forum Newbie
Posts: 2
Joined: Wed Aug 11, 2004 11:06 am

Invoking functions from a DLL

Post by Negligence »

Hey guys,

How can one invoke a .dll (it has a COM interface) with php? All attempts have been unsuccessful, and there isn't much documentation on the whole process... I need to access it's functions, obviously, so I've been trying this route:

Code: Select all

$test = new COM('file.dll'); // does not work
$test = new COM('program_name.application'); // does not work 
$test = new COM('program_name.process_id'); // does not work

A suitable alternative would be invoking the functions from the dll through the URL, as in;

http://www.mysite.com/MyDLL.dll?do=this

But when you make such an attempt, it asks you to save/open the file; not what I want.

So if anyone could provide some help, I would greatly appreciate it!

Regards,

Scott
Negligence
Forum Newbie
Posts: 2
Joined: Wed Aug 11, 2004 11:06 am

Post by Negligence »

bump... need some help folks ;)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't think most of us are using Windows for a production server.. Of those that are, probably few are using custom DLL files with COM.. so I'm not sure anyone will be able to help.. give it a few days though.. someone may know..
Post Reply