RE: [PHP] System and output
| From: | Jim Carey | Date: | Wed, 11 Oct 2000 09:56:01 +0000 |
| Subject: | RE: [PHP] System and output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19541@lists.php.net to get a copy of this message | ||
> > I use system() to call a programm on the server. The programm outputs
> > multiple lines of text.
> >
> > The problem: I want to put the output of the programm into a variable
> > instead of printing it to the screen. If I use exec(), I only get the
> > last line of the output to my variable. But I need all lines...
> >
> > Please help !
> >
> > Martin
if you do $a=exec(etc) then I believe you get all lines concatenated into
the one inside $a don't you ?
Jim Carey
www.OZbcoz.com