Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Invoking php from C++ code
- Michal O
September 26, 2004, 7:26 am
rate this thread
I have to write a C++ code that invokes a set of SQL statements
(inserts, updates, selects etc.),
according to the system administrator's directives.
I thought of writing the directives as a php script.
Can I execute php functions from a C++ code?
The php script writer should be able to access informaion from the C++ program,
and the C++ program should receive php execution results.
Is this possible?
Re: Invoking php from C++ code
if you look at some of the sources.. However, I truly doubt it would be
worth the trouble.. I also suppose you could run the cgi exe and pass the
data needed by the script as cgi parameters or whatever they are called...
But to be honest, I think it'll be easier to just stick to C++..