PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 513 All time: 5,719 This week: 249Up
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
Age: ???
All time rank: 321329 in Switzerland Switzerland
Week rank: 559 Up4 in Switzerland Switzerland Up

  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:513
This week:0
All time:5,719
This week:249Up
For more information send a message to info at phpclasses dot org.