You might want to run an command to the system such as: ls user*.txt > tempfile
Then take the tempfile and read it line by line using:
$links = file("/path/to/tempfile");
Now you have an array with all the files that match that. You just walk through the array and print out the link names.
$j = count($links);
for($i = 0; $i < $j; $i++) {
print("<a href=\"$link[$i]\">Link name</a>");
}
Hope that works. Email me if you need more help.
Daniel Ice
http://www.coderguy.com