title: PHP PDO SQLITE - connection
body: <p>Is this a correct way of setting up a PDO connection to a SQlite database in php?</p>
  
  <pre><code>new PDO(";dbname=sqlite:c:/path/database.sqlite", "", "");
  </code></pre>
  
  <p>Because this throws me an error:</p>
  
  <blockquote>
    <p>PHP Fatal error:  Uncaught exception 'PDOException' with message 'could not find driver'</p>
  </blockquote>
  
  <p>Because whenever I leave the <strong>;dbname=</strong> part out, it doesn't give me this error anymore.</p>
  
  <p>So what is the correct way?</p>
  
  <p><strong>PS</strong>: I have set up the drivers correctly in php.ini, see this link for a screenshot of phpinfo(): <a href="http://puu.sh/2xtEF.jpg" rel="nofollow">http://puu.sh/2xtEF.jpg</a></p>