Windows API named pipe functionality in php

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

    Windows API named pipe functionality in php

    Hi everybody,

    Is it possible to open a named pipe from a php script on Windows?

    More specifically, I have a Windows service that receives commands through a
    named pipe, and I'd like to open the client end of the pipe directly from
    php rather than creating an intermediate process.

    Thanks,

    A



  • Erwin Moller

    #2
    Re: Windows API named pipe functionality in php

    a wrote:
    [color=blue]
    > Hi everybody,
    >
    > Is it possible to open a named pipe from a php script on Windows?
    >
    > More specifically, I have a Windows service that receives commands through
    > a named pipe, and I'd like to open the client end of the pipe directly
    > from php rather than creating an intermediate process.
    >
    > Thanks,
    >
    > A[/color]

    Hi,

    Yes you can.
    Try FIFO or 'named pipe' search on www.php.net.

    I think functions like popen and fopen could come in handy.
    Read more at php.net, also some examples in there (most (l)inux-based).

    Good luck,

    Erwin Moller

    Comment

    • Erwin Moller

      #3
      Re: Windows API named pipe functionality in php

      Hi,

      http://nl3.php.net/popen contains a few examples for windows in the
      usercontributed notes too.
      Check them out.

      Good luck!
      Regards,
      Erwin Moller

      Comment

      • a

        #4
        Re: Windows API named pipe functionality in php

        [color=blue]
        >
        > http://nl3.php.net/popen contains a few examples for windows in the
        > usercontributed notes too.
        > Check them out.
        >[/color]

        I'll check them out. In the meantime I decided that in order to cover more
        possible configurations and ensure cross platform portability, I would also
        use tcp/ip to communicate with the service.

        Thanks for your replies!

        A


        Comment

        Working...