[UPHPU] Help me speed this up. Possibly a regex question?
Orson Jones
orson.uphpu at afriskito.net
Tue Feb 12 17:27:03 MST 2008
> $infile = "J-$Month-rs.pdf";
>
> if (!file_exists($infile)){
> $infile = "J-$Month-rp.pdf";
> }
...
Off the top of my head. I'd try to get a directory listing, then use regex to prune the resulting
list to only those that match "J-$Month-..\.pdf". Then do some checking on what is left of the list
to see what/if it is.
Orson
More information about the UPHPU
mailing list