Johan Holst Nielsen wrote:
>> <?php
>> //DATEFORMAT YYYYMMDD
>> if($dir=@opendir("/yourdirwithpdf")) {
>> echo "Found following files:"
>> while(($file=readdir($dir))!==false) {
>> if(ereg("^[a-zA-Z0-9]+\.$INPUTDATE\.pdf")) {
>> echo '<a href="'.$file.'">'.$file.'<\n>';
>> }
>> }
>> }
>> ?>
>
>
> UPS
>
> if(ereg("^[a-zA-Z0-9]+\.$INPUTDATE\.pdf", $file))
>
> The ereg line should look like this :)
>
Wow, I also forgot to close the dir handle!
Well I will let you do that :)
Regards,
Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php