i posted this in the newbie thread before but saw it was the wrong thread
I want to write an external php script that would randomise flash files in a particular folder on my site and display one in a given space. I've already composed the script.
<?php
$location = "http://www.mysite.com/images/";
$files = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "10");
$file = array_rand($files, 1)[0];
$ending = ".jpg";
$img = $location . $file . $ending;
echo "<img src="" . $img . "">";
?>
The problem is how to inset this into the flash movie tags. something like <embed src="flashmovie.swf"> where flashmovie.swf is the flashfile generated from the script above.
also, i'll also like to know if this script would work correctly.
i need help fast please. i've got a deadline.