Learn how to display random image in your page with this code snippets. The code selects random image from a specified directory, and outputs the selected image to browser. demo available.
FreeVersion: n/a Platform(s): linux, windows Updated: Mon Jun 9 2008
This tutorial will show you how to make a random link generating script in PHP. The script will store a list of links which you provide, randomly select a specified number of links from the list and display them. The full code listing will be provided at the bottom for the people who just want the code and cannot be bothered to read the tutorial.
FreeVersion: 1 Platform(s): linux, windows, freebsd, osx, sun Updated: Sun Jan 7 2007
learning by example is great way to figure out exactly how to make random outputs from image to text to actual html code. In the script provided it gives how it actually works within the comments. A very useful tool for beginning web designers and people new to php
FreeVersion: n/a Platform(s): n/a Updated: Fri Jun 9 2006
In this tutorial we will create a random image generator. This could be useful for rotating banner, ads, traded button links or just simply randomizing your pictures
This tutorial I will be showing you how to create a random password using nothing but loops and random letters. For extra security I will define a minimum length and a maximum length, I will also make it so you can't define a password from using the url.
First we need to define everything. This includes the min length, max length and emptying the password:
Version: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Tue Feb 6 2007
A useful PHP script which returns random quotes, jokes, testimonials etc. on each page load. Can also be used to return random images or links. Extremely simple to set up.
Version: 1 Platform(s): n/a Updated: Sat Feb 5 2005
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.
Version: 1.2 Platform(s): linux Updated: Wed Oct 20 2004
Many people email wondering how the heck we make the random quotes on the title bar at the main page of Spoono.com. Well, we're finally releasing the secret, and its not as hard as you think :)
Version: n/a Platform(s): Unix, Win NT Updated: Thu Mar 4 2004
This tutorial will teach you how to open a folder and how to read it contents. The sample code here does all the work to output random image located in the specified directory into your page.