Posted by on 08/28/05 21:30
I want to run PHP scripts from my C++ program.
I can run "php -n my_script.php" but I have 2 problems:
1. From my C++ program I want to pass to PHP script a data structure (a
C++ map). I think these solutions:
a. Save from C++ program a temp file and load from PHP script
b. PHP script stdin passed from my C++ program (I dont know how)
c. Link with php5ts.dll (or .so) and pass the data (is it possible?)
2. When PHP script finished, I want the stdout passed to a C++ string of
my program and not to write in console.
Can you suggest anything?
sorry for my bad english and THANKS
Navigation:
[Reply to this message]
|