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. Năm 2021 là năm con gì, mệnh gì, hợp tuổi nào?
  2. Dreamhost Black Friday & Cyber Monday Coupon
  3. Windows 10 Keyboard Shortcut
  4. Hướng dẫn sử dụng outlook: Cài đặt font chữ, màu chữ mặc định
  5. Cách cài đặt Ccleaner để dọn rác máy tính – Phần 3
  6. Web Page Password Protect
  7. Phần mềm hữu ích cho việc lập trình PHP

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

Comments

What do you think?