How to use cPanel's random HTML generator
This article describes how to use the random HTML generator in cPanel's CGI Center to generate dynamic content for your web site. This feature is often used to display quotes of the day, helpful hints, or other text that changes every time a web page is loaded.
Configuring the random HTML generator
To configure the random HTML generator, follow these steps:
In the Software/Services section of the cPanel home screen, click CGI Center. The CGI Center page appears.
Click Random HTML Generator.
In the text box, type each text phrase on a new line. The web server randomly picks a line from this list to display on web pages that have random HTML enabled.
Testing the random HTML generator
The random HTML generator is now configured. To test your new random HTML generator, follow these steps:
Create a web page that has a .shtml file extension. The .shtml file extension instructs the web server to use Server Side Includes (SSI) for the file.
Copy and paste the following SSI directive into the .shtml file where you want the random text to appear:
Upload the web page to your web site and load the page in a browser. A different line of text should appear every time you reload the page.
- Counters, Clocks, and Dates
You can use the cPanel CGI Center to add dynamic counters, clocks, and dates to your web site.
Learn how to use the cPanel CGI Center to configure a guestbook for your web site.