title: Fatal error: Class 'Logs' not found in
body: <p>I'm going crazy over these past few days and I really need your help because I don't know what else to do. I tried everything.</p>
  
  <p>Here is the problem:
  I have two files. <code>site.php</code> and <code>logs.php</code>.</p>
  
  <p>Here is the content of <code>logs.php</code>:</p>
  
  <pre><code>class Logs {
  
      function __construct() {
  
      }
  
  }
  </code></pre>
  
  <p>Now comes the fun part, beginning of 'site.php':</p>
  
  <pre><code>require_once("database.php");
  require_once("logs.php");
  
  class Site {
  
      private $db;
      private $logs;
  
      function __construct() {
  
          $this-&gt;logs = new Logs(); ### this is the error line
          $this-&gt;db = new MySQLDatabase();
  
      }
  
  }
  </code></pre>
  
  <p>They are all in the same directory. Why can't it find my class?</p>