Randomizing

For Loop in PHP

by Hiroshi on June 19, 2008

in Loops, Randomizing, Scripts

I am describing for loop with an example that include randomizing number display using images from a directory. Use following script and create a folder nb and put images 0.gif, 1.gif, … , 9.gif containing same digit over each and see.

{ 0 comments }

Similar to Number & Image form validation this example takes images with digits randomly and displays these for validating form.

{ 3 comments }

This one is my favorite script. It looks little but it can be used in many php applications or scripts to control or initiate things, if you know what I mean. We can generate a random number in between two specified digits. Following example will generate a random number in between 673 and 62389.

{ 0 comments }

Put all your swf files in a folder named as ‘images’ or whatever you name it (change folder name in script) and use this script to display a random flash movie, everytime page loads.

{ 16 comments }

Put all your images in a folder named as ‘images’ and use this script to display a random image, everytime page reloads.

{ 0 comments }

Very small yet wow kind of script that takes a folder and displays random script image at every time page reloads.

{ 0 comments }

Here is the script by that you can place links or data in it and each day different link or data or quote will be displayed. This script is for whole month. Content will just rotate throughout the month.

{ 0 comments }