Home  >  Q&A  >  body text

How to use php to call external programs (such as generated exe written in c++)

I would like to ask the experts, I want to make a web page, for example, input two numbers on the web page, and then PHP calls a program written in C to return the result of the sum of the two numbers to the web page, thank you~

小楼小楼1438 days ago1632

reply all(2)I'll reply

  • 西门大官人

    西门大官人2020-12-14 13:46:50

    Just open the system function in php. It is generally not recommended to enable it in a production environment as it may cause security issues

    reply
    0
  • 小破孩

    小破孩2020-12-04 13:43:09

    Form the data return value of c into an interface and use PHP to adjust it

    reply
    0
  • Cancelreply