Re: get the output from a program
| From: | Gustaf Sjoberg | Date: | Tue, 12 Nov 2002 17:36:25 +0000 |
| Subject: | Re: get the output from a program | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124030@lists.php.net to get a copy of this message | ||
this is just a shot in the dark, beware. but i think you could make use of the system() function and
pass the output to a file.
ex. system('df > ~/public_html/output.tmp');
but i've never tried the function, try to search php.net functions for system
On Tue, 12 Nov 2002 12:33:09 -0500
gregchagnon@hotmail.com (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
>
>
--
Gustaf Sjoberg <gs@vacfu.org>
<(" <) <(" )> <( ")> (> ")>