Is it possible to use C++ binaries from php

前端 未结 8 1921
囚心锁ツ
囚心锁ツ 2020-12-01 08:00

Is it possible to write some C or C++ code and compile to binaries, then use those binaries with php? Is it also possible to write a php library using C and C++ ?

If

相关标签:
8条回答
  • 2020-12-01 08:56

    You can build shared object extensions that php can then load. There's a short tutorial on this at http://devzone.zend.com/node/view/id/1021

    0 讨论(0)
  • 2020-12-01 08:56

    You can write your code in C/C++ and compile it into an EXE. You can then call exec(); from PHP and execute the code.

    0 讨论(0)
提交回复
热议问题