I need to call a dll that returns a string using PHP.
What would be the best possible way to achieve this?
Asked
Active
Viewed 2,290 times
2 Answers
-1
This is not possible using native PHP.
I would look into running an operating system level function to do this using exec()
, like for example rundll.exe
(for some kinds of DLLs).
If rundll can't do it (it has something to do with managed and unmanaged DLLs, I don't know what that means), the easiest way may be writing a wrapper application that imports the DLL, performs the necessary actions, and outputs the result.
![](../../users/profiles/187606.webp)
Pekka
- 418,526
- 129
- 929
- 1,058