Most efficent way to call to a program
Posted: Fri Feb 22, 2013 8:39 pm
I've never delt with this too much, know how to accomplish it, but want to know best method:
What is the best method to pass some values to a compiled program (c++) and retrieve its results in PHP?
Specifics are a Lamp environment (CentOS), running with cPanel. I have a client who has a "super secret calculation", and they want it so if someone hacked the site, unlike a PHP script, they can't just view the PHP code to see how it calculates this (yeah, ignoring the idea of decompilers for this discussion)
Thanks for advice on it.
-Greg
What is the best method to pass some values to a compiled program (c++) and retrieve its results in PHP?
Specifics are a Lamp environment (CentOS), running with cPanel. I have a client who has a "super secret calculation", and they want it so if someone hacked the site, unlike a PHP script, they can't just view the PHP code to see how it calculates this (yeah, ignoring the idea of decompilers for this discussion)
Thanks for advice on it.
-Greg