title: Just some of the file thumbnails are being shown
body: <p>I am importing some files to a folder using  everything is ok and all the files get inserted normally, but the problem begins when I try to show thumbnails of these files on my browser. In this case just some of the files can be shown perfectly and others are shown az empty rectangular! While all the files are located in the same folder!
  I investigated more and realized that the images that their original source(on computer) was close to the folder path are being shown perfectly and others not.</p>
  
  <p>For instance my folder locates in: c://xampp/htdocs/test/folder
  I have put all the picturs in folder, but just the images that originally where available at c://xampp/htdocs/test are being shown and not others.</p>
  
  <p>Please help me</p>
  
  <p>the code:</p>
  
  <pre><code>    $images=array();  
      $dir_handler = opendir('test/folder') or die("Unable to open $path");  
      $i=0;    
      while($file = readdir($dir_handler))
      {            
      if(is_dir($file)) 
      continue;        
      else if($file != '.' &amp;&amp; $file != '..' &amp;&amp; $file != 'index.php')
      {                    
      $images[$i]=$file;
      $i++;     
      }       
      }      
      sort($images);
  
      for($i=0; $i&lt;sizeof($images); $i++) 
      {              
  
      echo "&lt;a href=".chr(34).$path.$images[$i].chr(34)."&gt;&lt;img style='border:1px solid #666666; width:100px;height:100px; margin: 10px;' src='".$images[$i]."'/&gt;&lt;/a&gt;";
  
      }        closedir($dir);
  </code></pre>