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
Post a Comment