title: Getting all files from a folder and opening them onclick
body: <p>I am reading a folder with glob() function in php</p>
  
  <pre><code>foreach (glob("folder/*.*") as $filename) {
      echo $filename."&lt;br /&gt;"
  }
  </code></pre>
  
  <p>My folder contains three kind of files pdf, image, videos. What I need here is to make a link for each file and open them on click.</p>
  
  <p>How can I achieve this, any ideas?</p>