title: php glob() not returning all files
body: <p>I searched this site and found a very useful snippet of code that i've  been able to use.</p>
  
  <pre><code>  $counter = 0; 
       foreach (glob("images/gallery/photo_gallery/resized/*.jpg") as $pathToThumb)
      {
          $filename = basename($pathToThumb);
          $pathToLarge = 'images/gallery/photo_gallery/' . $filename;
          echo ('&lt;a href="'.$pathToLarge.'"&gt;&lt;img src="'.$pathToThumb.'" /&gt;&lt;/a&gt;');
          $counter++;
      }
  </code></pre>
  
  <p>But for some reason this will only return the first 30 images in my directory. (there are 81) Can anyone think why this is happening?</p>
  
  <p>Thanks.</p>