I have the usual PHP and MYSQL server running but I want to perform some CPU intensive computations. Therefore I wish to run a C program to handle that part.
Is it possible to exchange data between a PHP and a C/C++ program on the server itself?
Regards PP
It's possible and you have multiple ways to achieve that.
From the above I would choose an extension or Gearman.
Why not write a C++ program and then use popen to fetch the results when it is executed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With