I hope I am in the right forum. I am a graphic designer, not a programmer but more and more I am finding that I need to use some form of php in my websites. Right now I just wanted a simple image rotator that will rotate 4 images in a website randomly as you click through the site. The url is http://www.sharkbite.ca/sharktestsites/RyanVenier the php code I used is
Code: Select all
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>
Thanks.