title: PHP class not found but it's included
body: <p>I'm including a PHP class with</p>
  
  <pre><code>require_once($ENGINE."/classUser.php");
  </code></pre>
  
  <p>but when the code is executed i receive this error:</p>
  
  <blockquote>
    <p>Fatal error: Class 'User' not found in
    C:\xampp\htdocs\WebName\resources\engine\ajax\signup.php on line 12</p>
  </blockquote>
  
  <p>I still can't figure out what's the problem. I'm 99% sure it's correct.</p>
  
  <p>The "$ENGINE" is correct, and the class is correct too (Netbeans suggests me class methods and variables).</p>
  
  <p>signup.php:</p>
  
  <pre><code>&lt;?php
  
  /* Created on: 13/12/2011
   * Author: 
   * 
   * Description: User signup procedure.
   */
  
  require_once("../settings.php");
  require_once($ENGINE."/classUser.php");
  
  $user = new User();
  $user-&gt;createUser($_POST["username"], $_POST["email"], $_POST["password"]);
  
  
  ?&gt;
  </code></pre>
  
  <p>classUser.php:</p>
  
  <pre><code>&lt;?php
  
  /* Created on: 13/12/2011
   * Author: 
   * 
   * Description: This class manages users.
   */
  
  require_once("settings.php");
  require_once($LIBRARY."/cassandraphp/cassandra.php");
  
  class User {
  
      public function createUser($username, $email, $password){
          $cassandra = Cassandra::createInstance($CASSANDRASERVER);
          $cassandra-&gt;set(
                  "user.".$username,
                  array(
                      'ID' =&gt; uniqid(),
                      'Username' =&gt; $username,
                      'Email' =&gt; $email,
                      'Password' =&gt; $password
                  )
          );
      } 
  }
  
  ?&gt;
  </code></pre>