PureRED Posted July 12, 2007 Share Posted July 12, 2007 Okay, I'm not exactly an expert or even a novice with php, but I know that by the use of arrays and random numbers you can pull a Flash file from said array without making any special additions to the SWF file you're pulling. . . . With that said, I have absolutely no idea how to go about achieving this. Anyone care to work their magic? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted July 12, 2007 Share Posted July 12, 2007 $pics = array("pic.jpg", "pic2.jpg", "pic3.jpg"); $rand = array_rand($pics); echo '<img src="' . $pics[$rand] . '">'; Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 12, 2007 Share Posted July 12, 2007 $array=array('video1','video2'); you can access this like $array[0] that is = to video1 randomizing an array will shuffle its position http://www.php.net/manual/en/ref.array.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.