“Anyone can do any amount of work provided it isn't the work he is supposed to be doing at the moment.” - Robert Benchley

Random Quote

At the top of this page you'll see a random quote. This quote is a random one from a local text file. Adding new lines to the text file will add new quotes which will be displayed. I also set it up so that there is a link to the quote which can be a customizable link to the person who said it.


Download the demo from here, extract it to your PHP5 (or probably PHP4) enabled website. Open the quotes.txt file and notice the structure. Each line is a random quote with the quote, followed by the person who said it, followed by the link that will show up on the site. After saving the file, create a new PHP file in the same directory as the quotes.txt and the random_quote.php and perform a PHP include call on the random_quote.php.

Photo Albums

All examples, instructions, tutorials, custom code, and documents created by Brian Hoover on this site are in acordance with the Createive Commons Attribution 3.0 license.

This means you are free to take, and modify any thing on this site, even for commercial use, as long as Brian Hoover is cited as the original creator, and that http://www.brian-hoover.com is the original source.

About Me

Everything on this site is taken as-is, and no support contract or warrantees are in place for obligated continued support. If you have questions about the content on the site feel free to contact the Webmaster.

Creative Commons License
This work by Brian Hoover is licensed under a Creative Commons Attribution 3.0 United States License.
Based on a work at www.brian-hoover.com.