C++ gateway?

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

    #1

    C++ gateway?

    I've got a PHP site that needs to communicate to a C++ program we're
    writing. Can you give me a quick overview of how to set this up?

    Thanks,

    Matthew

  • Andy Hassall

    #2
    Re: C++ gateway?

    On 9 Nov 2006 08:38:50 -0800, "Matthew256 " <PRESENT321@gma il.comwrote:
    >I've got a PHP site that needs to communicate to a C++ program we're
    >writing. Can you give me a quick overview of how to set this up?
    Depends how you define communicate - generally it's the method of interprocess
    communication that matters rather than what language the other process was
    written in.

    Simple command line parameters? http://php.net/system
    Pass data via stdin/stdout? http://php.net/proc_open
    Sockets? (UNIX, TCP, etc.) http://php.net/sockets
    Loaded as a library/extension? http://php.net/manual/en/zend.creating.php

    --
    Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
    http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

    Comment

    • Rudi Menter

      #3
      Re: C++ gateway?

      Andy Hassall:
      >I've got a PHP site that needs to communicate to a C++ program we're
      >writing. Can you give me a quick overview of how to set this up?
      Depends how you define communicate - generally it's the method of
      interprocess communication that matters rather than what language
      the other process was written in.
      Exactly,
      and the method you will use should depend of the amount and
      velocity of the data, but generally there is only memory
      and disk (and possibly even the intra- or internet).

      Rgds
      --

      Comment

      • Matthew256

        #4
        Re: C++ gateway?


        Rudi Menter wrote:
        Andy Hassall:
        >
        I've got a PHP site that needs to communicate to a C++ program we're
        writing. Can you give me a quick overview of how to set this up?
        >
        Depends how you define communicate - generally it's the method of
        interprocess communication that matters rather than what language
        the other process was written in.
        >
        Exactly,
        and the method you will use should depend of the amount and
        velocity of the data, but generally there is only memory
        and disk (and possibly even the intra- or internet).
        >
        Rgds
        --
        It's going to be on the same machine, transfering structures back and
        forth.
        state
        zip
        item
        qty
        item
        qty
        item
        qty

        Returns:
        method
        cost
        method
        cost
        method
        cost

        Maybe twice per minute

        Comment

        Working...