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 :)
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.
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.
In this tutorial you will learn how to generate random numbers using PHP. It illustrates three helpful examples that uses random numbers: Generating a random number between 0 and 9, Simple slots script that generates multiple random numbers, and random text link ads.