cPanel Hosting by
  • Free PHP Scripts »
  • Random Text
  • Bookmark and Share

Random text / quotes PHP script

Script name: RanTex - random text script
Current version: 1.1
Price: FREE

Download Now

Random Text Rotator

RanTex is a random text script. RanTex will display a random quote or text block from a list of your choice. Text/quotes can contain HTML code so you can make them interactive.

Random quotes can be displyed either using Javascript or used as a PHP include:

<script type="text/javascript" src="rantex.php"></script>

<?php include 'rantex.php'; ?>



  • displays random text or quotes from a list of your choice,
  • quotes can be hard-coded or listed in an external file,
  • random text can be displayed using Javascript or as a PHP include,
  • supports changing display settings on-the-fly (use one copy of the script for both PHP includes and Javascript display mode),
  • ... and much more!,
Download Now »


  • PHP 4.4 or newer

RanTex has been tested on servers under Linux, Windows and FreeBSD operating systems. It should work on any server with a working installation of PHP.


See RanTex displaying random text using Javascript and directly (as an include) here:

Random Text Demo

Try refreshing the test page to see how quotes randomly changes.


Rate PHP Random Text script!

If you like this script please rate it or even write a review at:

Rate this Script @ Hot Scripts

Rate this Script @ The PHP Resource Index



Do you like this free script?

In exchange please place a link to to your website. It can be as simple as a text link or choose one of the banners available here. Thank you!


Be notified of future updates!

Join PHPJunkyard low-volume newsletter to be notified about new scripts, new versions of the existing scripts and other important news. Subscribe here

Dedicated Servers by