in reply to Pick random file and print
If you want to mask the url, there are still ways to do this. Produce a one-frame frameset that links the chosen page in, for instance.
I really should look this up instead of just tossing it out, but I think it might be possible to stat the directory that these files are in and see if it has changed - in effect, see if any files has been added/deleted. This would allow you to cache your list of index files until further notice. Depending on your setup however, this may or may not be a possible/effective way - meaning, where do you store this list?
If you really want to read the directory and then push the contents to the browser, then I don't see what improvements might be done at all... then again, I'm no optimizing expert I guess. :) Maybe someone will tell us if glob or readdir is the faster/more effective though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(wil) Re: Pick random file and print
by wil (Priest) on May 07, 2002 at 14:27 UTC | |
by dsheroh (Monsignor) on May 07, 2002 at 15:10 UTC | |
by Dog and Pony (Priest) on May 07, 2002 at 15:10 UTC |