php e c++

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

    php e c++

    Dovrei far interagire php con una dll compilata in c++, mi spiego,
    dovrei far in modo di inviare un comando dalla pagina php ad una dll ,
    magari un numero un valore, e invocare un metodo che si trova nella
    dll, come posso fare ? Ma si può fare ?

    Grazie

  • Erwin Moller

    #2
    Re: php e c++

    xiang wrote:
    Dovrei far interagire php con una dll compilata in c++, mi spiego,
    dovrei far in modo di inviare un comando dalla pagina php ad una dll ,
    magari un numero un valore, e invocare un metodo che si trova nella
    dll, come posso fare ? Ma si può fare ?
    >
    Grazie
    Als ik jou was zou ik die vraag opnieuw stellen in een taal die we wel
    kunnen lezen.

    Groetjes,
    Erwin

    Comment

    • Schraalhans Keukenmeester

      #3
      Re: php e c++

      xiang wrote:
      Dovrei far interagire php con una dll compilata in c++, mi spiego,
      dovrei far in modo di inviare un comando dalla pagina php ad una dll ,
      magari un numero un valore, e invocare un metodo che si trova nella
      dll, come posso fare ? Ma si può fare ?
      >
      Grazie
      >
      I sort of deduct you want to know how to invoke a DLL from within a PHP
      script, parse and retrieve some data from it by calling a specific
      function/method in the C++ program, if that's possible at all. Is my
      deduction more or less correct?

      (That's why English is such a marvellous language, practically everyone
      writes/understands at least the basics of it.)

      Check the PHP manuals for exec(), system(), passthru() &
      escapeshellcmd( ) on how to invoke external programs.

      If you want to invoke just a particular function in a program/library,
      things probably become much more complicated. Perhaps you could use the
      argv[] in the C++ program to parse command options.

      Rgds
      Sh.

      Comment

      Working...