1
Hi all,
I want to randomly show the picture from a folder (e.g /agenda-x/images) in the minical. Although the module has a sample script of randomly choose a picture, the picture must be named in number and this will be hard to do maintanence for the pictures. Bcoz I not familiar with phpscripts, can someone help me to come out the script for the following steps?
1) Get all filenames available under specified folder.
2) Put them into an array.
3) Echo the filename using random index.
The best will be if i can also pass-in the folder path value to this script.
Thanks in advance.