title: Cannot find Class with PHP Namespace
body: <p>I posted some questions previously regarding the use of Namespaces in PHP and from what I got, this example code I have below should be working.</p>
  
  <p>However I am getting errors when I try to use Namespace in PHP like this.  Here is the first error when running the code below as is...  </p>
  
  <pre><code>Fatal error: Class 'Controller' not found in E:\Controllers\testing.php on line 6
  </code></pre>
  
  <p>E:\Controller\testing.php File</p>
  
  <pre><code>&lt;?php
  use \Controller;
  
  include('testcontroller.php');
  
  $controller = new Controller;
  $controller-&gt;show();
  ?&gt;
  </code></pre>
  
  <p>E:\Controller\testcontroller.php File</p>
  
  <pre><code>&lt;?php
  use \Library\Registry;
  
  namespace Controller
  {
      class Controller
      {
          public $registry;
  
          function __construct()
          {
              include('E:\Library\Registry.class.php');
              $this-&gt;registry = new Registry;
          }
  
          function show()
          {
              echo $this-&gt;registry;
              echo '&lt;br&gt;Registry was ran inside testcontroller.php&lt;br&gt;';
          }
      }
  }
  ?&gt;
  </code></pre>
  
  <p>E:\Library\Registry.class.php File</p>
  
  <pre><code>&lt;?php
  namespace Library\Registry
  {
      class Registry
      {
          function __construct()
          {
              return 'Registry.class.php Constructor was ran';
          }
      }
  }
  ?&gt;
  </code></pre>
  
  <p>As you can see I tried to make it as simple as possible just to get the Namespace part working.  I have tried different variations and cannot seem to figure it out.</p>