title: How to hide file from list in directory
body: <p>I have a script file. that list files and folder in a directory.. I want to hide certain files and folder. How do I do that? </p>
  
  <pre><code>&lt;?php
  if ($handle = opendir('.')) {
      while (false !== ($file = readdir($handle)))
      {
          if (($file != ".") 
           &amp;&amp; ($file != ".."))
          {
              $thelist .= '&lt;LI&gt;&lt;a href="'.$file.'"&gt;'.$file.'&lt;/a&gt;';
          }
      }
  
      closedir($handle);
  }
  ?&gt;
  
  &lt;P&gt;List of files:&lt;/p&gt;
  &lt;UL&gt;
  &lt;P&gt;&lt;?=$thelist?&gt;&lt;/p&gt;
  &lt;/UL&gt;
  </code></pre>