Re: Including Perl CGI output

From: Date: Fri, 19 May 2000 01:21:50 +0000
Subject: Re: Including Perl CGI output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167@lists.php.net to get a copy of this message
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

« previous php.general (#167) next »