>I want to do the following:
>I have some CGI (eCommerce-System) which generate a output to the User.
>The CGIs open a HTML-template and parse it. so far - so good.
>now I want to include PHP in that HTML-Template. But the PHP-statements
>dont get evaluated. I am not suer how to solve this problem: do I need
>to tell the apache that he should evaluate php in CGI output? or is this
This can't really be described as a PHP problem. You could perhaps call
it an Apache architecture problem if you wanted to be *.
The problem is that Apache does not support stacked content handlers,
or any stacked IO for that matter. This means that you cannot take the
output from a module like mod_cgi that handles CGIs and feed it to the
mod_php module which does the PHP parsing. Stacked IO may make an
appearance at some point in the Apache 2.x cycle. Probably not 2.0
In the meantime, your best bet is probably to call your CGI from with
a PHP page using the virtual() function which make an Apache sub-request.
You are not going to be able to mix PHP tags into your cgi output
this way either, but you can at least have PHP stuff happening before
and after the virtual() call which might serve your needs.
Another alternative is of course to port these CGIs to PHP which would
solve all your problems.