title: How to wrap echoed file name in <a> tag?
body: <p>I am having trouble figuring out how to make text found using <code>glob</code> into a link. I am sure it is something really simple, such as adding an <code>&lt;a&gt;</code> tag to the <code>echo</code> line, but I cannot figure out where in the code to put this.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code> $directory = "*.xls";
   $directory = (!strstr($directory,"*") || $directory =="./" ) ? $directory."*" : $directory;
   $files = glob($directory);
   for( $i=0; $i &lt; sizeof( $files); $i++)
   {
       echo basename($files[$i])."&lt;br/&gt;\n";
   }
  </code></pre>