[eluser]Derek Jones[/eluser]
If it's just 30 files, probably not too bad, but with many files, and if you get tremendous traffic spikes, you will certainly be causing the disk i/o to go through the roof. I'd recommend some sort of caching system for reading the directory, perhaps writing the serialized array to a cache file, and only updating it every hour, day, week, or whatever your specific needs are for keeping it dynamic. That way for most requests, you have only one file read, and no directories traversed with readdir().