title: glob() is not searching folder
body: <p>I think I'm doing something fundamentally wrong. Here is my code</p>
  
  <p>index.php</p>
  
  <pre><code>&lt;?php
  
  if(isset($_POST['a'])){
      $action = $_POST['a'];
  } else if(isset($_GET['a'])){
      $action = $_GET['a'];
  } else {
      $action = "home";
  }
  
  
  if($action == "home"){
      $frontImages = glob('assets/images/frontpage/*');
      include_once 'home.php';
  }
  ?&gt;
  </code></pre>
  
  <p>I <code>var_dump($frontImages)</code> inside of <code>homp.php</code> (which btw is showing just fine) but I'm getting that <code>$frontImages</code> is an undefined variable. Both the <code>index.php</code> file and <code>home.php</code> file is in the root folder and here is a image of the path directory:</p>
  
  <p><img src="https://i.stack.imgur.com/gARpu.png" alt="enter image description here"></p>
  
  <p>So not sure what I'm doing wrong here.</p>