View Single Post
Old 08-22-2008, 05:47 AM   #2 (permalink)
Dr_Neffy
The Wanderer
 
Dr_Neffy's Avatar
 
Join Date: Aug 2008
Location: italy
Posts: 7
Thanks: 0
Dr_Neffy is on a distinguished road
Default

oh yeah i know this smale trick
yo can also do
PHP Code:
<?php
$a 
= array("im1.jpg""im2.jpg""blabla.jpg");
srand(time(0));
$rand_int rand(0count($a)-1);
echo 
$a[$rand_int]."\n";
?>
so you don't need images with 1, 2, 3... numeration it's can be more usefull ;)
Send a message via MSN to Dr_Neffy
Dr_Neffy is offline  
Reply With Quote