• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

Display Random Testimonials in PHP

January 19, 2011 by Ryan 1 Comment

Lately I have been working on some new projects. I have a client right now that operates a service business and they would like to display testimonials on their site. For this application, I wrote a custom, simple solution to accomplish this with PHP. Here is a preview of the code:


--------------------------------------------
Use a PHP include to use this code on your
target page.
*/
?>

This code can also be used to display random text, html links, etc… Here is a link to the source file (Right-Click and Save-As to download):
PHP Source File

The example above shows a working/standalone application of the code as it will display HTML. The source file does not include the HTML shown at the bottom of the image.

Please comment with any questions or suggestions with the use or application of this code.

Filed Under: Web Development Tagged With: php, random links, random testimonials, random text

Reader Interactions

Comments

  1. joshua lowe says

    February 13, 2011 at 5:41 pm

    This is a great little script, very simple but extremely effective. Thanks so much for posting it and saving everyone else a little work and time.

    Many Kudos sir!

    Joshua

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in