Page 1 of 1
dll files?
Posted: Mon Oct 24, 2005 10:18 am
by Ralle
I was just wondering if it's possible to run a dll file through php?
Posted: Tue Oct 25, 2005 8:51 am
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.
Posted: Tue Oct 25, 2005 11:54 am
by Ralle
so lets say I have some random file which I want to send a command, how do I do??
Posted: Tue Oct 25, 2005 12:08 pm
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.