Re: Perl meets PHP
| From: | Chris Moyer | Date: | Wed, 31 May 2000 12:05:24 +0000 |
| Subject: | Re: Perl meets PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-705@lists.php.net to get a copy of this message | ||
On Wed, May 31, 2000 at 12:34:35PM +0100, James Lyon wrote:
> What's a good way to get a longish string back from a Perl script called
> from PHP3?
>
Both exec() and system() return values from the executed programs output. exec() returns the
last line of the output, and system() returns the whole thing. So you should be able to simply
output
the value from the perl script.
-- Chris Moyer -- cmoyer@chekinc.com --
PHP Developer -- Chek.com