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" <[EMAIL PROTECTED]> 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
> > >
> > >
> > >
> > >
> >
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to