title: PHP: showing content of a folder with icons
body: <p>I'm using PHP/MySQL. 
  I have a folder called "docs" with PDF files. 
  I'd like to know if there exist an easy way, using only PHP, to show the content of the folder with a custom icon. 
  I mean, something like this:</p>
  
  <pre><code>[icon] File01.pdf
  [icon] File02.pdf
  [icon] File03.pdf
  </code></pre>
  
  <p>In order to allow visitors read or download the files.</p>
  
  <p>Many thanks in advance</p>