RE: [PHP] Php and Fortune

From: Date: Thu, 23 Oct 2003 03:07:51 +0000
Subject: RE: [PHP] Php and Fortune
Groups: php.general 
Request: Send a blank email to php-general+get-167220@lists.php.net to get a copy of this message
> 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

« previous php.general (#167220) next »