i want help for geting a .swf file sequentially
Posted: Wed Jul 13, 2005 10:30 am
presently i am using a code for randomly get a file.
here the code:
in this $pval is a string like "s1.swf,s2.swf";
i wnat help for how to get sequentilay.
plz help me.
here the code:
in this $pval is a string like "s1.swf,s2.swf";
Code: Select all
$files=array();
$files=explode(',',$pval);
$i=count($files)-1;
mt_srand((double)microtime()*1000000000000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
return $filesї$rand];plz help me.