title: Unexplained GET errors
body: <p>I have code that reads the images directory for a user (user 38 below) and returns an array of the file names, skipping the . and .. references. </p>
  
  <pre><code>// $dir = 38/images  
      $dirHandle = opendir($dir)$dirHandle = opendir($dir)       
          while (false !== ($fileName = readdir($dirHandle))) {
  
              if ($fileName == "." || $fileName == "..") 
                      continue;
  
           -- Put file on array which gets returned to ajax load call at end  -- 
          }
  </code></pre>
  
  <p>This works fine but  it seems to generate the access errors shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/2f7YJ.png" alt="enter image description here"></p>
  
  <p>Am I doing something fundamentally wrong?
  Thanks</p>