DJ_AM_Juicebox
asked on
call C++ code from PHP
Hi,
Is it possible to call functions from a c++ file from PHP? Something like:
<?php
CallSomeCPPFunction(); // somehow precompiled and usable by PHP directly
?>
No idea how the two could communicate, just wondering if it's possible.
Thanks
Is it possible to call functions from a c++ file from PHP? Something like:
<?php
CallSomeCPPFunction(); // somehow precompiled and usable by PHP directly
?>
No idea how the two could communicate, just wondering if it's possible.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
make it your C++ function a CLI, and call it using system(), exec() to execute the function
it may be possible to call and execute in command mode of php server...
http://au3.php.net/function.exec
also alternatively you can use system():
http://au2.php.net/system
basically this executes any command like a commandline does.
Hope this helps.