PHP Classes
elePHPant
Icontem

PHP 5 Fortune Class: Pick a random quote from pre-defined text files

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-04-15 (11 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 510 All time: 5,480 This week: 867Up
Version License Categories
php5fortuneclass 1.0GNU General Publi...PHP 5, Content management
Description Author

This class is a PHP slight alternative to the well-known fortune telling utility.

It reads plain text files that define the fortunes and picks one text quote that usually is presented to the user.

Since all fortunes are defined in plain text files, it is easy to add more fortunes.

The class pick quotes from a specific fortune file or from a random fortune file present in a given directory.

Picture of S.M.
Name: S.M. <contact>
Classes: 1 package by
Country: Switzerland Switzerland

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example PHP5 Fortune Class Example
Plain text file fortune.cl.php Class PHP5 Fortune Class Definition
Accessible without login Plain text file test1.fortune Data PHP5 Fortune Class Example Fortune
Accessible without login Plain text file test2.fortune Data PHP5 Fortune Class Example Fortune

 Version Control Unique User Downloads Download Rankings  
 0%
Total:510
This week:0
All time:5,480
This week:867Up