Calling C/C++ library function from PHP

前端 未结 5 1713
余生分开走
余生分开走 2020-11-27 16:50

We have a PHP web app running on a customer\'s machine. For an update, we have a bit of code in C that we\'d like to include as a native opaque library along with the PHP we

5条回答
  •  悲&欢浪女
    2020-11-27 17:48

    You can compile your code and use system, shell_exec or passthru functions to handle the output. Most web hosts allow you to compile c++ code, just ssh to your server, upload the code and compile it.

提交回复
热议问题