Greetings all.
I am a newbie to the world of PHP and need some advice please.
I have a file which contains a list of jpg file names. I am hoping to be able to use all these pictures on a webpage, but displaying them in a random order. Howver, I want each picture to be displayed once only on the page!!
I am planning on using a script, something like :-
$filelist = file("picfiles.txt");
$filesize = sizeof($filelist);
$randfile = rand(0,$filesize-1);
$filename = $filelist[$randfile];
etc.
etc.
etc.
(I nicked this off another site BTW)
Could someone please tell me how I can make it so that each image is displayed once only. And once each image has been displayed, the script can finish off the coding.
Many thanks