title: set_include_path Fatal error: Class 'MyClass' not found in file
body: <p>I'm trying to include a custom path to a certain file using php's <code>set_include_path</code>. Here's the code:</p>
  
  <p>file.php</p>
  
  <pre><code>&lt;?php
      $path = 'classes/';
      set_include_path(get_include_path() . PATH_SEPARATOR . $path);
      $obj = new MyClass();
      $obj-&gt;methodCall();
  ?&gt;
  </code></pre>
  
  <p>Here's my root directory structure</p>
  
  <pre><code>www
  |_webapp
         |_classes
                 |_MyClass.php
         |_nbproject
         |_file.php
  </code></pre>
  
  <p>All I get when I execute the script is this error message: <code>Fatal error: Class 'MyClass' not found in  C:\wamp\www\webapp\file.php</code>. I have tried including the file using <code>require</code> and it works but I have hit a wall with <code>set_include_path</code>. Does anybody know what I can do about this?</p>
  
  <p>Thanks</p>