title: Opendir error; No such file or directory found
body: <p>This may be a very easy question. I am working in directory /mobile and I have photos in a directory /uploads.</p>
  
  <p>I am getting the error:</p>
  
  <p><code>Warning: opendir(http://www.yoozpaper.com/uploads) [function.opendir]: failed to open dir: not implemented in /hermes/bosweb/web088/b881/ipg.yoozpapercom/mobile/sportspage.php on line 313</code></p>
  
  <p>I am putting this into a variable $dir = <code>"http://www.yoozpaper.com/uploads"</code></p>
  
  <p>for the image <code>src=$dir/$file</code>.</p>
  
  <p>Note that this is working when I am working with files in the main directory.</p>
  
  <p>Any help on this would be greatly appreciated.</p>
  
  <p>Code below:</p>
  
  <pre><code>$dir = "http://www.yoozpaper.com/uploads";
  </code></pre>
  
  <p>//open directory</p>
  
  <pre><code>if ($opendir = opendir($dir))
  {
  </code></pre>
  
  <p>//read directory</p>
  
  <pre><code>while (($file = readdir($opendir)) !==FALSE)
  {
  
  if ($file==$imagename)
  </code></pre>
  
  <p>//can specify height and width below</p>
  
  <pre><code>echo "&lt;img width='75%' height='30%' src='$dir/$file' title='$headline - Yoozpaper News Online' alt='$headline'&gt;&lt;br /&gt;&lt;br /&gt;";
  </code></pre>