Re: Generate PHP using PERL???
| From: | Wendell Brown | Date: | Tue, 10 Jun 2003 17:20:17 +0000 |
| Subject: | Re: Generate PHP using PERL??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150944@lists.php.net to get a copy of this message | ||
On Tue, 10 Jun 2003 12:05:32 -0500, Todd Snyder wrote:
>My hope is that their is some directive that I can output at the start that will invoke the PHP
>interpreter so that my output will
>be run as a PHP script rather than just HTML.
Generally speaking a script will be interpreted by one or the other.
I'm pretty sure that if you generate perl code from a perl script, the
interpreter doesn't run on the generated output - it's output. I can't
say for certain that simply generating php output from a perl script
can't be made to work, but I'm almost certain that it isn't intended
to.
I would however think that it would be possible to generate the php
output to a file and then do a header forward from perl to that file or
possibly execute the php interpreter from the command line and pass it
the php file as input.