Calling cgi programsfrom php script
Posted: Fri Jul 11, 2003 11:14 am
Greetings,
This may sound nuts, but I was wondering if it it possible to call another cgi-script from php?
I would like to use php in general, but I have C++ libraries/programs that interface to proprietary servers, which can't be called from php.
As the next best thing, I would like to invoke a cgi (C++ program) using popen() and read it's output (HTML fragment code).
I can do the popen() and print a program's output fine.
I'm wondering if the program called via php/popen() has the same environment variables needed by a cgi program?
Any advice suggestions would be much appreciated,
Thanks for the assistance,
Curt C.
This may sound nuts, but I was wondering if it it possible to call another cgi-script from php?
I would like to use php in general, but I have C++ libraries/programs that interface to proprietary servers, which can't be called from php.
As the next best thing, I would like to invoke a cgi (C++ program) using popen() and read it's output (HTML fragment code).
I can do the popen() and print a program's output fine.
I'm wondering if the program called via php/popen() has the same environment variables needed by a cgi program?
Any advice suggestions would be much appreciated,
Thanks for the assistance,
Curt C.