title: Fatal error: Class 'database' not found - PHP
body: <p>When I attempt to use the problem class I get the following error:</p>
  
  <pre><code>Fatal error: Class 'database' not found in path/problem.php on line 25
  </code></pre>
  
  <p>I don't understand why I got this error, at the top of problem.php I require database.php. What is happening?</p>
  
  <p>problem.php</p>
  
  <pre><code>&lt;?php
  require("common.php");
  require("database.php");
  ...
  ?&gt;
  </code></pre>
  
  <p>database.php</p>
  
  <pre><code>&lt;?php
  class database
  {
      ...
  }
  ?&gt;
  </code></pre>