Enjoy a randomly generated fortune:
$ fortune | cowsay ________________________________________ / Woody: What's going on, Mr. Peterson? \ | Norm: Let's talk about what's going | | *in* Mr. Peterson. A beer, Woody. | | | | -- Cheers, Paint Your Office | | | | Sam: How's life treating you? Norm: | | It's not, Sammy, but that doesn't mean | | you can't. | | | | -- Cheers, A Kiss is Still a Kiss | | | | Woody: Can I pour you a draft, Mr. | | Peterson? Norm: A little early, isn't | | it Woody? Woody: For a beer? Norm: No, | | for stupid questions. | | | \ -- Cheers, Let Sleeping Drakes Lie / ---------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
$output = shell_exec("/usr/games/fortune | /usr/games/cowsay"); echo $output;