Copy this code and paste it in your HTML
function fortune()
{
$html = '';
exec( 'which fortune', $fortune );
if( $fortune )
{
exec( $fortune[ 0 ], $array ); }
else
{
return '';
}
for( $q = 0; $q < $x; $q++ )
{
$html .= $array[ $q ] . ' ';
}
return $html;
}