Possible Duplicate:
Can PHP and C++ pass data between each other?
I want to pass some parameters from C++ to PHP, though I don’t know what to use. Will $_POST and $_GET suffice or are there better options for these kind of connections?
The PHP is just a simple “data to OpenOffice document” script. This script needs to receive some parameters from a C++ application and collect data according to those parameters from a MySQL database.
EDIT:
Found the answer, I could achieve what I wanted simply through URL-passing
Use system() to start the php intepreter, passing the name of the script and any additional arguments as part of the
commandparameter. You can then access the arguments passed to the script using the $argv variable.