|
Random Image Tutorial
|
Other links at PHP > Tutorials > Randomizing |
| 1. |
Random Image with a Database
|
|
|
This tutorial will show you a sample of how to generate a random number and how to use that number to get a random item from a list. This example uses a MySQL database to store the image names and URLs.
|
| 2. |
Flip a Coin
|
|
|
Easily make a quick random choice between two options. This php script works by seeing if the current server time seconds is even or odd. The code snippet also extends the basic principle to let you flip a 3-sided coin (for choosing among 3 options). Use this for deciding banners, style sheets or any random choice between a very limited number of options.
|
| 3. |
random image
|
|
|
This beginners example shows how to display a random image on a web page from an entry in a text file.
|
| 4. |
Random password generator
|
|
|
This script uses only one cycle to generate random size password sequences filled with valid random characters. Good tutorial for PHP beginners.
|
| 5. |
Simple Random HTML Emitter
|
|
|
A simple and quick random HTML emitter that you can easily integrate into your web site. Theres no need for an overly complex solution here.
|
|
|