Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (9 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 499 All time: 5,301 This week: 1,550Up
Version License Categories  
php5fortuneclass 1.0GNU General Public Lice...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: 293327 in Switzerland Switzerland
Week rank: 1803 Up17 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:499All time:5,301
 This week:0This week:1,550Up