Random Quote Generator

Posted by David on December 7th, 2004

Do you like the random quotes you see on my website? Would you like to add my random quote generator to your site? You can do so in a number of ways:

  • As a JavaScript include (easiest method):
    Paste the following text into your html:


    <script language="Javascript" src="/random.php?format=js;">
    </script>

  • As XML: Use this URL:
    http://rationalmind.net/random.php?format=xml
  • As PHP code:


    < ?php
    include("http://rationalmind.net/random.php");
    ?>

  • As text (when screen scraping): http://rationalmind.net/random.php
  • Google Gadget: http://rationalmind.net/random.php?format=gadget

If you want to submit your own quotes, you can browse the full list and add new quotes. (New quotes will not appear until I approve them.)

If you want to limit the quotes to a specific author, add ?author=Authors Name to the URL. You can combine this with the format. For example:
http://rationalmind.net/random.php?author=Ayn Rand&format=js
(To filter by topic, use ?keyword=KeyWord )

If you want to view all quotes from a single author:
http://rationalmind.net/random.php?show_author=Ayn Rand