> Chuck PUP Payne wrote:
> > Hi,
> > 
> > Is there a way I can get php to call the program fortune 
> then print that a
> > web page.
> > 
> > Thanks.
> > 
> > Payne
> > 
> 
> echo '<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

shouldn't fortune be in backticks?
passthru(`fortune`);

Martins

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

Reply via email to