advanced code snippet search
gdonald on 09/27/06
nix fortune
09/27/06 09:13am09/27/06 09:04am09/27/06 09:01am09/27/06 09:00am
function fortune(){ $html = ''; exec( 'which fortune', $fortune ); if( $fortune ) { exec( $fortune[ 0 ], $array ); } else { return ''; } $x = count( $array ); for( $q = 0; $q < $x; $q++ ) { $html .= $array[ $q ] . ' '; } return $html;}
Report this snippet Tweet
Comment:
You need to login to post a comment.