This is a
simple way to display images on your
web page using PHP. Each time the page is refreshed, the script will
choose one image from a list of images to display on your page.
What you need
Your webserver must be able to run PHP scripts.
Step One
Create your web page as normal but save it with a php extension,
for example, randomimage.php.
Step Two
Create a directory for your images and upload your images into
that directory.
Step Three
Copy this code and paste it into the top of your web page like
this:
<?php
// Random Image Script by www.paintedpixels.com
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
< html>
< head>
<title>Random Image</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
< /head>