title: php require in class file
body: <p>I have the following folder structure for my site:</p>
  
  <pre><code>    Admin/
      Tech/
  index.php
      classes/
      include/
      core/
  </code></pre>
  
  <p>Everything seems to work except for when i try to call the following code from Admin/index.php</p>
  
  <pre><code>&lt;?php
  #including our init.php
  require '../core/init.php';
  $general-&gt;logged_in_protect();
  ?&gt;
  </code></pre>
  
  <p>I get the following error for some reason. I can't figure out what to do to fix it or if its even possible to fix.</p>
  
  <p>The core/init.php file has the following code:</p>
  
  <pre><code>&lt;?php
      #starting the users session
      session_start();
      require 'include/database.php';
      require 'classes/users.php';
      require 'classes/general.php';
  
      $users = new Users($db);
      $general = new General();
  
      $errors = array();
  ?&gt;
  </code></pre>
  
  <p>error that i am receiving:</p>
  
  <pre><code>PHP Warning:  require(include/database.php): failed to open stream: No such file or directory in 
  </code></pre>
  
  <p>Can someone please help me with this?</p>