ballouta Posted October 19, 2008 Share Posted October 19, 2008 Hello I have serveral flash files (e.g. 101.swf / 102.swf / 103.swf) I want to view one of them randomly every time a user opens this php page. May you give me soem help. thank you Link to comment https://forums.phpfreaks.com/topic/129075-solved-choosing-flashes-randomly/ Share on other sites More sharing options...
JasonLewis Posted October 19, 2008 Share Posted October 19, 2008 $files = array("101.swf","102.swf","103.swf","104.swf","105.swf"); $random = $files[rand(0, count($files)-1)]; echo $random; Link to comment https://forums.phpfreaks.com/topic/129075-solved-choosing-flashes-randomly/#findComment-669145 Share on other sites More sharing options...
ballouta Posted October 19, 2008 Author Share Posted October 19, 2008 thank you Projectfear Link to comment https://forums.phpfreaks.com/topic/129075-solved-choosing-flashes-randomly/#findComment-669157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.