how to call a c++ function from php? -



how to call a c++ function from php? -

i have c++ programme has homecoming string. since main method in c++ cannot homecoming string, returning string through user-defined function. how can invoke function php script. know exec() command can phone call c++ programme there way can phone call specific function?

scenario:

int main() { string myfunc(){ .... homecoming string; } homecoming 0; }

how can phone call myfunc() php?

you can utilize c++ php bridge library.

check link

http://www.php-cpp.com/

and extension zend,

check link http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/

this help you

php c++ exec

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -