|
Posted by Hendri Kurniawan on 01/05/07 05:30
BTW scandir is not available prior to PHP5
Just a note
Hendri Kurniawan
Skeleton Man wrote:
>> the problem is:
>> there are too many files in the folder, e.g. over 10K or more, i don't
>> want to list it
>> but i know that it must contains 10K files, so it is possible to get ,
>> say 1020th file under this folder?
>
> Use scandir() to return an array of filenames and array_rand() to pick a
> random entry from that list.. (see the manual for details)
>
> Chris
>
>
Navigation:
[Reply to this message]
|