> <?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 :)
Regards,
Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

