OT: filepro HTML output
Fairlight
fairlite at fairlite.com
Fri Aug 6 10:56:24 PDT 2010
>From inside the gravity well of a singularity, Enrique Arredondo shouted:
> Hi ,
>
> I'm having an issue with a cgi-bin script that runs a filepro report and
> generates a HTML page but when I cat that page back to the browser it only
> displays the HTML part but any php script within it won't execute. Why ?
> Can I use something else than cat ?
PHP code is executed from within mod_php inside httpd. You're using a ksh
script in CGI context. The cgi-script handler is what's processing your
request, and your HTML output is fed directly from STDOUT of the script to
the browser--bypassing the PHP handler. Because you're not using a PHP
script directly, the PHP module is never involved because the handler is
never triggered.
You could try running your PHP stuff through the `php` command line
program and then merging your output before things go back out STDOUT.
That, or rewrite the entire thing in PHP.
mark->
More information about the Filepro-list
mailing list