how to pass php sertch results to c++ program?

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

    how to pass php sertch results to c++ program?


    Well no more or less..
    just wondering what way is esyes to do that.
    detail:
    php performs sertch in db and output should by passed to c++ program.
    how to aceff that?


    --
  • Tim Van Wassenhove

    #2
    Re: how to pass php sertch results to c++ program?

    In article <opr8u8d7k2jcoh jq@w.bredbandsb olaget.se>, Carramba wrote:[color=blue]
    >
    > Well no more or less..
    > just wondering what way is esyes to do that.
    > detail:
    > php performs sertch in db and output should by passed to c++ program.
    > how to aceff that?[/color]

    Better ask this in a c++ group. I presume they'll suggest you to have a
    look at popen, system, ...

    Or they will ask you why you even want to use php to perform the query,
    as there is probably a c++ api/lib available too.


    --
    Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>

    Comment

    • Pedro Graca

      #3
      Re: how to pass php sertch results to c++ program?

      Carramba wrote:[color=blue]
      > Well no more or less..
      > just wondering what way is esyes to do that.
      > detail:
      > php performs sertch in db and output should by passed to c++ program.
      > how to aceff that?[/color]

      system("echo " . escapeshellarg( $data) . " | c++program");

      or write a file with the data and have the c++ program read that file.

      --
      USENET would be a better place if everybody read: : mail address :
      http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
      http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
      http://www.expita.com/nomime.html : to 10K bytes :

      Comment

      • Carramba

        #4
        Re: how to pass php sertch results to c++ program?

        On 31 May 2004 13:28:19 GMT, Tim Van Wassenhove <euki@pi.be> wrote:
        [color=blue]
        > In article <opr8u8d7k2jcoh jq@w.bredbandsb olaget.se>, Carramba wrote:[color=green]
        >>
        >> Well no more or less..
        >> just wondering what way is esyes to do that.
        >> detail:
        >> php performs sertch in db and output should by passed to c++ program.
        >> how to aceff that?[/color]
        >
        > Better ask this in a c++ group. I presume they'll suggest you to have a
        > look at popen, system, ...
        >
        > Or they will ask you why you even want to use php to perform the query,
        > as there is probably a c++ api/lib available too.
        >
        >[/color]


        the reson why I want to do it becouse on there is a sertch script that
        runs throught database from the webquary. the result ll by cryptet by
        c++ program, which ll passe crypted sertch result to companys message
        service application.

        --

        Comment

        Working...