Re: [PHP-GENERAL] Including Perl CGI output

[email protected] (David Robley)
Newsgroups php.general
Message-ID <[email protected]>
On 18 May, Adam Charnock wrote:
> Well, this is my first post on this list, so here goes :-)
> 
> I have a Perl CGI script that returns a plain piece of text to me. I used 
> to include this output in my documents with SSI but now I have moved to PHP 
> I am not sure how to get the same result as I am not mixing two languages. 
> I can include output from a PHP file using:
> <?PHP require ('/xxx/xxx.php3'); ?>
> But it doesn't work for Perl scripts
> 
> Has anyone get any ideas?
> 
> Thanks in advance
> Adam Charnock

My first thought would be to re-write the perl stuff in PHP; but if
that's not possible, you would probably want passthru() or system(). See
also exec().

Note that using include() or require() inserts the content of the
require()d file, not it's output!

Cheers
-- 
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.