portable IPC - Win and Linux?

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

    portable IPC - Win and Linux?

    I want to write a portable PHP program or two, to do some stuff best done in
    PHP ... but to commincate with some project code written in C.

    The function ref i have for PHP is: "PHP Functions Essential Reference" (new
    riders) ... and it says the pipes and shared memory stuff won't work under
    windows and the com stuff won't work under anything but windows. I believe
    that ... so I am asking for other approaches that may result in portable
    code. Dropping files for communications is a last resort. I use PHP stand
    alone without a web server and like it for its easy scripting ... anyone
    else using it for just stand alone scripting?

    Thanks
    Tom


  • kaptain kernel

    #2
    Re: portable IPC - Win and Linux?

    Tom Jones wrote:
    [color=blue]
    > I want to write a portable PHP program or two, to do some stuff best done
    > in PHP ... but to commincate with some project code written in C.
    >
    > The function ref i have for PHP is: "PHP Functions Essential Reference"
    > (new riders) ... and it says the pipes and shared memory stuff won't work
    > under windows and the com stuff won't work under anything but windows. I
    > believe that ... so I am asking for other approaches that may result in
    > portable code. Dropping files for communications is a last resort. I use
    > PHP stand alone without a web server and like it for its easy scripting
    > ... anyone else using it for just stand alone scripting?
    >
    > Thanks
    > Tom[/color]

    socket based comms is your friend:


    Linux Format has an article on it as well this month.


    Comment

    • Luca Mariano

      #3
      Re: portable IPC - Win and Linux?

      The shmop extension offer access to shared memory and works under both Win32
      & Linux.


      kaptain kernel ha scritto nel messaggio
      <3fba521c$0$250 34$afc38c87@new s.easynet.co.uk >...
      Tom Jones wrote:
      [color=blue]
      > I want to write a portable PHP program or two, to do some stuff best done
      > in PHP ... but to commincate with some project code written in C.
      >
      > The function ref i have for PHP is: "PHP Functions Essential Reference"
      > (new riders) ... and it says the pipes and shared memory stuff won't work
      > under windows and the com stuff won't work under anything but windows. I
      > believe that ... so I am asking for other approaches that may result in
      > portable code. Dropping files for communications is a last resort. I use
      > PHP stand alone without a web server and like it for its easy scripting
      > ... anyone else using it for just stand alone scripting?
      >
      > Thanks
      > Tom[/color]

      socket based comms is your friend:


      Linux Format has an article on it as well this month.



      Comment

      Working...