>  $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


_______________________________________________

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

Reply via email to