title: PHP include(''); not displaying/running linked PHP
body: <p>Can some please point out why this doesn't work? I have this include:</p>
  
  <pre><code>&lt;?php include ('assets/images/Gallery/index.php'); ?&gt;
  </code></pre>
  
  <p>In which contains PHP to run/display this:</p>
  
  <pre><code>&lt;?php
    $images = glob('*.{gif,png,jpg,jpeg}', GLOB_BRACE);
    $num_of_files = 999999999;
    foreach($images as $image)
     {
       $num_of_files--;
  
       if($num_of_files &gt; -1)
         echo "&lt;li class='port2'&gt;&lt;div class='wrap'&gt;&lt;a href="."'".$image."'"." class='thickbox' rel='g'&gt;&lt;img src="."'".$image."'"."&gt;&lt;div class='mask'&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;" ;
       else
         break;
     }
  ?&gt;
  </code></pre>
  
  <p>I’ve tried them side by side with different names and fresh documents and all I get is a blank screen. Alternatively, could someone, instead, tell me the right way to point the second, sort script, to the directory of my choosing, rather than including it from the directory I need it in. Thank you.</p>
  
  <p><strong>EDIT:</strong> As Fred-ii confirmed, he was able to it running. I too, now know it is linking to the second PHP file, as its now throwing this error:</p>
  
  <pre><code>Warning: Invalid argument supplied for foreach() in assets/images/gallery/index.php on line 4 
  </code></pre>
  
  <p>Line 4 reads:</p>
  
  <pre><code>foreach($images as $image)
  </code></pre>