Re: Php and Fortune
| From: | Mykroft Holmes IV | Date: | Thu, 23 Oct 2003 03:15:42 +0000 |
| Subject: | Re: Php and Fortune | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167219@lists.php.net to get a copy of this message | ||
Mykroft Holmes IV wrote:
Chuck PUP Payne wrote:Oops, should be: echo '<pre>'; passthru('fortune'); echo '</pre>'; AdamHi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payneecho '<pre>'; passthru(fortune); echo '</pre>'; Should do it. I use this for a nice little Server Status page that iterates through an array of unix commands, works like a charm. Adam