Share on Facebook Share on Twitter

This is very simple PHP Random Script to get Text from txt file and show it where you want to show. You can easy include it by PHP code or using java script to include it. With java script, you can easy share your random quote, just give theme a code, that’s all. PHP Random Quote run with 4 files inside. Here is how you install it:
Upload all file inside folder: php-random-quote to your web host. Edit file bienthuy.txt to your need.
One quote per line. You can enter quote as much as you want, just remember ONE PER LINE
Then run it in your browser: domain.com/php-random-quote/index.php

Demo PHP Random Quotes: http://demo.bienthuy.com/php/random-text/

If you want to share it, just give your friend Java Script like this:

Files Content: ONE PER LINE, you can use html code in this txt file.
bienthuy.txt

btrand.php

Using:  If you use PHP, then include it where you want to show

If you want to use Java Script or want to share, use this code:

If share, just edit the link:

Download PHP Random Quote: http://yyen.info/A3IWdo2YXD

Same tags:

  1. How to remove all attributes from a tag using PHP
  2. Tạo hệ thống vote giống youtube
  3. PHP – Convert number to text

Other Posts you may be interested in:

  1. PHP Random String Generator, Random Value from Array
  2. Làm gì khi email bị đưa vào blacklist?
  3. NameCheap Coupon .Net only $3.88
  4. Fixed: Google sitemap error “Invalid tag value. This XML tag has an invalid value”
  5. How to enable or disable Hibernate
  6. PHP – Convert number to text
  7. Hướng dẫn sử dụng outlook: Cài đặt font chữ, màu chữ mặc định

Last updated on August 29th, 2015 at 03:57 pm

Comments

What do you think?