title: Path to access file with php
body: <p>I have my files into <code>/var/www</code> but i need access sqlite file into folder 
  <code>/home/my/words</code></p>
  
  <p>I'm trying do this:</p>
  
  <pre><code>$dir = 'sqlite:../../home/my/words/bd.sqlite';
  </code></pre>
  
  <p>But path doesn't work.</p>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in /var/www/db.php:20 Stack trace: #0 /var/www/db.php(20): PDO->__construct('sqlite:..\..\ho...') #1 /var/www/Details.php(14): require_once('/var/www/db.php') #2 /var/www/controller/Controller.php(14): require_once('/var/www/Detail...') #3 /var/www/index.php(5): require_once('/var/www/contro...')</p>
  </blockquote>
  
  <p>If i use, for example: <code>$dir = 'sqlite:test\db.sqlite';</code> it works great.</p>
  
  <p>What i'm doing wrong?</p>