This is a discussion on Using a native Windows-DLL from PHP? within the PHP Language forums, part of the PHP Programming Forums category; Hello, I've an existing Windows-dll which I want to use within PHP. Is there something similar to Java'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
O. Hauger wrote:
> Hello, > > I've an existing Windows-dll which I want to use within PHP. Is there > something similar to Java's "JNI" in PHP. Or do I have to make a > PHP-Extension from my existing DLL? > > Thanks in advance! > > Oliver Hi Oliver, Have a look at exec and the like: http://nl2.php.net/manual/en/ref.exec.php and also: passthru (If you need to capture any output produced) Think commandline. If you can define some commandline statement, you can feed it to PHP. I don't think you can call a DLL directly, so you probably need to find/write some wrapper. Hope that helps. Or maybe when you read through the documentation you find what you need. (Not my area of expertice. :P) Good luck, Erwin Moller |
|
|||
|
O. Hauger <o.hauger@daa.de> wrote:
> I've an existing Windows-dll which I want to use within PHP. Is there > something similar to Java's "JNI" in PHP. Or do I have to make a > PHP-Extension from my existing DLL? windows dlls can be accessed by: http://nl2.php.net/manual/en/ref.w32api.php of if they are COM: http://nl2.php.net/manual/en/ref.com.php or if they are .net modules: http://nl2.php.net/manual/en/ref.dotnet.php |