Thanks very much, though the one code has an error in it:
if(substr($file, 0, -3) == 'pdf'){
// Display it;
}
The 'zero' returns everything forward. This code resulted in a null, thus nothing displayed. However, by taking out the 0, the code worked as expected, as the -3 denotes the last 3 characters of the file regardless of file length.
Again, my thanks.
Macinslaw
[RESOLVED]