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: 514 This week: 1All time: 5,738 This week: 560Up
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: 323529 in Switzerland Switzerland
Week rank: 411 Up7 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:514
This week:1
All time:5,738
This week:560Up