You are here: C++ and Command Line PHP « PHP Programming Language « IT news, forums, messages
C++ and Command Line PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация