Re: [PHP] get the output from a program

2002-11-12 Thread Adam Williams
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 Willi

Re: [PHP] get the output from a program

2002-11-12 Thread Greg
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-10@;roark.mdah.state.ms.us... > actually, look up system() I think it would be better in your case. > > Adam > > On Tue, 12 Nov 2002

Re: [PHP] get the output from a program

2002-11-12 Thread Adam Williams
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

Re: [PHP] get the output from a program

2002-11-12 Thread Adam Williams
look up exec() 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] get the output from a program

2002-11-12 Thread Greg
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.p