title: Fatal error: Namespace declaration statement has to be the very first statement in the script
body: <p>I get an error when I load the signing script. The error is as followed:</p>
  
  <blockquote>
    <p>Namespace declaration statement has to be the very first statement in the script in /Applications/MAMP/htdocs/lphoto/cms/php/class/db.php on line 1</p>
  </blockquote>
  
  <p>I use the following scripts / pages</p>
  
  <p><strong>signin.php</strong></p>
  
  <pre><code>&lt;?php namespace scripts;
   // get the auth class and the db settings
  require_once("class/auth.php");
  
  use scripts\auth\auth as authClass;
  </code></pre>
  
  <p><strong>auth.php</strong></p>
  
  <pre><code>&lt;?php namespace scripts\auth;
  
  require_once 'db.php';
  
  //use scripts\db\db as Database;
  
  class auth extends Database
  </code></pre>
  
  <p><strong>db.php</strong></p>
  
  <pre><code>&lt;?php namespace scripts\db;
  
  
  /**
   * Author: Lennard Moll
   * Licence: GNU GPL 3
   * Last edited 18 July 2015
   */
  
  require_once  'db_conf.php';
  
  use scripts\db\db_config as conf;
  </code></pre>
  
  <p><strong>db_conf.php</strong></p>
  
  <pre><code>&lt;?php 
  
  namespace scripts\db;
  </code></pre>
  
  <p>I don't know where the problem is. Hope any of you know how to fix it. Thanks in advance</p>