Hi,
We have a bunch of CGI scripts over here. We have just started using PHPLib to password protect pages.
The dilemma is that we need to protect the stuff that these CGI scripts produce. Note that using "virtual" from a PHP script and executing a cgi script would be ugly, since these cgi scripts contains different form fields. So putting a PHP script layer over the CGI means that I have to write a lot of code to pass these forms across pages.
For example, we have cgi scripts A and C, and we have PHP script B.
CGI script A-> PHP script B -> CGI script C
cgi script A will call php script B on "form submit". PHPLib will check authorizations, and if okay, execute cgi script C. But that means that all the form fields will be lost unless I embed them in "hidden" fields, which I cannot, since each cgi will produce form fields that are arbitrary.
The most elegant way that I can think of is to get each cgi-script to produce a little of php codes.
so a.cgi will call C.cgi, as usual. But when c.cgi is called and the html is produced, this HTML is passed to the PHP engine before the web server spits it out.
Is what I described even possible?
Thanks a million.
R.