PHP MyFortune
Written by Kai Dietrich   
Wednesday, 03 January 2007

PHP MyFortune

PHP MyFortune is a PHP clone of the well known unix fortune. Well, not exactly a clone - it uses a different input file format and outputs small images rather then plain text.
PHP MyFortune is published under the GPL

The code is pretty much self-explanatory and the "documentation" is quite short:
/*************************************************
 *   PHP MyFortune
 *   Copyright (C) 2004 Kai 'Cleeus' Dietrich
 *   mailto: 
 This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
 
 *
 *   Reads a random cookie from a file named 'cookies.txt'
 *   and outputs it into an image. A cookie is a small piece
 *   of text delimited by '--=--'
 *
 *   The selected cookie changes every 10min for each IP.
 *
 *   usage: myfortune.php[?fg=RRGGBB][&bg=RRGGBB][&notrans]
 *   fg - foreground color, hex RGB format
 *   bg - background color, hex RGB format
 *   notrans - no background transparency
 *************************************************/

download PHP MyFortune

PHP MyFortune in action:


MyFortune

You will notice that this image changes every 10 minutes
Last Updated ( Wednesday, 03 January 2007 )