On Tue, Feb 12, 2002 at 09:47:35AM +1100, Gareth Walters 
([EMAIL PROTECTED]) wrote:
> 
> ----- Original Message -----
> From: "Michael Lake" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 11, 2002 11:14 PM
> Subject: Can't get output from passthru() in PHP. was Re: [SLUG] Can't get
> PHP4 to run on Debian
> 
> 
> > Mike Lake wrote:
> > The perl program spamfooler when invoked from the command line does
> > output text but its not showing up in the HTML output from PHP. The output
> should
> > be a single line of text. Here is the PHP code.
> 
> > <?php
> > $command="cat myemail | spamfooler";
> > echo ("Command is: $command");        <--- this is a test line
> > passthru($command);
> > echo " end";                          <-- test line
> > ?>


why not

$rc = `$command`;
echo $rc;


jobst


-- 
The road to wisdom is long, so pack a big lunch!

             __, Jobst Schmalenbach, [EMAIL PROTECTED], Technical Director
   _ _.--'-n_/   Barrett Consulting Group P/L & The Meditation Room P/L      
 -(_)------(_)=  +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to