WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : randomly display aphorisms using php to execute a UNIX 'fortune' script
Categories : PHP Update Picture
Demian Turner
Date : Apr 17th 2000
Grade : Be the 1st to grade this Code Example
Viewed : 2255
File : fortune.php3
Images : No Images for this code example.
Search : More code by Demian Turner
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

To view an example check out http://www.onionbrain.com/demian/smallfortune.php3
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
How to get the source of a site into an array.
Categories : Arrays, HTML, PHP
calculus of the eastersunday
Categories : BC math, PHP, Date Time, Databases



Classic guest book made with PHP and Flash
Categories : PHP, Flash, Java Script
PHPShell - A class implementing a shell written in PHP
Categories : PHP, PHP Classes, CLI
Render TTF Text to PNG. Text message, font, size, rotation, padding, color, background, and transparency can all be defined via URL.
Categories : PHP, PHP Classes, Graphics
php Free chat simple fast and customizable chat server that uses a simple filesystem for message and nickname storage
Categories : PHP, AJAX, XML, Complete Programs
email validator check checker email e-mail email address
Categories : PHP, Email, Regexps
phpFormGenerator for Dynamic Form Generation from MySQL
Categories : PHP, PHP Classes, MySQL, Databases, HTML and PHP
Monthly and Daily Upcoming Events calendar.
Categories : Date Time, PostgreSQL, PHP, Calendar, Databases
Example Shopping cart class
Categories : Ecommerce, PHP, PHP Classes
Convert text to 'quoted printable' without the IMAP package installed.
Categories : PHP, Mail, IMAP
PHPDRAW, the php wannabe Photoshop ;-)
Categories : PHP, PHP Classes, GD image library, Arrays
Form Security - Match A Value For Success
Categories : PHP, Authentication, HTML and PHP, Sessions, Security
 Rob Curts wrote :333
Wouldn`t it be easier to do this:

<?
  $my_output = `/usr/games/fortune`;
  echo nl2br($my_output);
?>

Using the back-ticks to gain the output from a system 
call is a PERL trick, that PHP seems to handle fine.