[UPHPU] Help me speed this up. Possibly a regex question?

Richard K Miller richardkmiller at gmail.com
Wed Feb 13 10:33:14 MST 2008


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.



More information about the UPHPU mailing list