This task is doing a module to swap ads randomly from folder named “ads” on the root like

the advertising are either .swf, or .gif all that i need is to play the swf (when one is finished it starts the other one.. till the display of all swf's)..

The folder “ads” is supposed to have 5 ads, when it finished number 1... it start randomly until it finish displaying all the advertising swf... i dont want to display only one of the five ... but display all in a random way..

can anyone help me in doing this module using php