On Feb 13, 2008, at 10:01 AM, Ash wrote:

Richard K Miller wrote:
On Feb 12, 2008, at 4:35 PM, Ash wrote:
Is there a faster way to do this? Explanation below if this doesn't make sense.

$files = glob("J-$Month-*.pdf");
Then use $files[0] (or do they have to checked in order?)

They have to be checked in order.


I suppose glob() will still be faster. You can search the returned array of filenames instead of doing multiple file_exists() calls.


_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to