Using a native Windows-DLL from PHP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • O. Hauger

    Using a native Windows-DLL from PHP?

    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
  • Erwin Moller

    #2
    Re: Using a native Windows-DLL from PHP?

    O. Hauger wrote:
    [color=blue]
    > 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[/color]

    Hi Oliver,

    Have a look at exec and the like:


    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

    Comment

    • Daniel Tryba

      #3
      Re: Using a native Windows-DLL from PHP?

      O. Hauger <o.hauger@daa.d e> wrote:[color=blue]
      > 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?[/color]

      windows dlls can be accessed by:

      of if they are COM:

      or if they are .net modules:


      Comment

      Working...