Re: get the output from a program
| From: | Adam Williams | Date: | Tue, 12 Nov 2002 17:59:24 +0000 |
| Subject: | Re: get the output from a program | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124040@lists.php.net to get a copy of this message | ||
No if it works use it, but if you choose to go with system() you will need
to pass the command through escapeshellcmd() as a security precaution.
Adam
On Tue, 12 Nov 2002, Greg wrote:
> exec() worked jsut fine. Is there any drawback to using this?
> -Greg
>
> "Adam Williams" <awilliam@mdah.state.ms.us> wrote in message
>
> news:Pine.LNX.4.33L2.0211121138370.5968-100000@roark.mdah.state.ms.us...
> > actually, look up system() I think it would be better in your case.
> >
> > Adam
> >
> > On Tue, 12 Nov 2002, Greg wrote:
> >
> > > Hi-
> > > Is there a way in PHP to execute a program and then have it pass its
> output
> > > back to PHP? Say I wanted to return the value that running "df"
> produced
> > > and put it in a web page? Thanks!!
> > > -Greg
> > >
> > >
> > >
> > >
> >
>
>
>
>