dll files?

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
Ralle
Forum Commoner
Posts: 38
Joined: Mon Oct 17, 2005 5:05 am

dll files?

Post by Ralle »

I was just wondering if it's possible to run a dll file through php?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that depends on what is in the DLL.. If it's a PHP extension, fairly easily. If a registered COM set then it's not too hard. Otherwise, no. No matter which, it would only work on a Windows machine.
Ralle
Forum Commoner
Posts: 38
Joined: Mon Oct 17, 2005 5:05 am

Post by Ralle »

so lets say I have some random file which I want to send a command, how do I do??
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

It depends entirely in which context you are "sending" a command to said file.

If it is an executable, then you could use shell_exec()

However, as you have asked about a dll (Dynamic Link Library) file, that will not work.

dll are extensions to applications, and thus the parent application must be called which will then have ties to the dll.

In other words, you can't do with PHP what you are asking.
Post Reply