1 Nov 2007 at 19:20 #1 swinnie swinnie Soldato Joined 30 Apr 2007 Posts 3,095 Location Kent Hi Guys I see a few guys here have PHP image rotators. Could someone give me any hints how to make one or give me the code. I do know PHP and have PHP Hosting. Many Thanks.
Hi Guys I see a few guys here have PHP image rotators. Could someone give me any hints how to make one or give me the code. I do know PHP and have PHP Hosting. Many Thanks.
1 Nov 2007 at 19:24 #2 Conrad11 Conrad11 Soldato Joined 12 Jun 2005 Posts 5,361 Just stick this is a file called index.php Code: <?php $files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE); readfile($files[array_rand($files)]); ?> Stick your images in the same folder and navigate to the index.php file and you have your image rotator
Just stick this is a file called index.php Code: <?php $files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE); readfile($files[array_rand($files)]); ?> Stick your images in the same folder and navigate to the index.php file and you have your image rotator
1 Nov 2007 at 19:38 #3 swinnie swinnie Soldato OP Joined 30 Apr 2007 Posts 3,095 Location Kent Thanks Conrad11