title: php unable to connect sqlite db error 500
body: <p>hi i'm trying to run this code to connect with my db.sqlite database file,
  but the server respond with</p>
  
  <p><strong>Failed to load resource: the server responded with a status of 500 (Internal Server Error)</strong>
  and the page is blank.</p>
  
  <p>here's my code:</p>
  
  <pre><code>&lt;?php
  
  class MyDB extends SQLite3
  {
       function __costruct()
         {
            $this-&gt;open('copiaDatabase.sqlite');
         }
  
  }
  
  $db = new MyDB();
  echo $db-&gt;lastErrorMsg();
  ?&gt;
  </code></pre>