title: PHP opendir works fine with relative path and not with absolute one?
body: <p>Here is the problem:
  In one place I'm using relative path to load names of all files in certain folder:</p>
  
  <pre><code>if ($handle = opendir('images/uploads/form_id_1103/1'))
  </code></pre>
  
  <p>This is working fine, but if I change it to:</p>
  
  <pre><code>if ($handle = opendir('/images/uploads/form_id_1103/1'))
  </code></pre>
  
  <p>I get an error: <strong>No such file or directory in</strong> - just to mention, images folder is in the root, so /images should be valid</p>
  
  <p>In the meantime, if I show an image from that ("non existing") folder with 
  
  <pre><code>&lt;img src="/images/uploads/form_id_1103/1/test.jpg"&gt;
  </code></pre>
  
  <p>it works fine and shows the image.</p>
  
  <p>I cannot use relative path, as I'm using Apache's mod_rewrite to transform URLs to SEO friendly ones.</p>