Page 1 of 1

PHP / C++ Integration

Posted: Fri Oct 14, 2005 4:12 am
by toravy
Hi,
I have to integrate C++ code with PHP. Anybody worked before in this help me. Its very urgent.

Thanks for your help in advance.

Posted: Fri Oct 14, 2005 6:09 am
by thomas777neo
What does your c++ code do? And why the integration selection?

PHP / C++ Integration

Posted: Fri Oct 14, 2005 6:14 am
by toravy
Hi thomas,
Thanks for reply. C++ code contains the parser. So i have to call the C++ file in php and pass the parameters like <inputfile> <input-seprator> <outputfile> <output-seprator> col1 col2 co3 ....

Thanks for your help in advance,

Posted: Fri Oct 14, 2005 6:22 am
by thomas777neo
What does your code do, its objective?

Posted: Fri Oct 14, 2005 6:30 am
by phpdevuk
sounds like its reading some kind of datafile in, possibley some kind of import?

PHP / C++ Integration

Posted: Fri Oct 14, 2005 7:22 am
by toravy
Hi,
Thaks for your replys,
The C++ code file is used to read the log file. For that i have to call the C++ Code file and pass the parameters like <inputfile> <input-seprator> <outputfile> <output-seprator> col1 col2 co3 ....
Please send me some example code to do like this if its possible, then its very easier for to do.

Thanks for your help in advance,

Posted: Fri Oct 14, 2005 7:57 am
by feyd

Posted: Fri Oct 14, 2005 12:41 pm
by m3mn0n
You make it sound as if you are mixing actual c++ source code with php source code. heh

That's not what you are doing, right?

If it's the executable, run exec()

Posted: Fri Oct 14, 2005 1:20 pm
by BDKR
Sami wrote: If it's the executable, run exec()
Exactly! However, it doesn't sound like he knows how to code at all. Otherwise, he would've realized that
the behaviour he is describing can be accomplished in PHP without the use of this C++ file.