title: Unable to write to a chmod 777 database file on SQlite3 via php 5.3.0
body: <p>I'm trying to insert data into my SQlite3 database (this works via the command line).
  I gave the data1.db file 777 permissions and still it says it's unable to open the file.</p>
  
  <p>I get this error:</p>
  
  <pre><code>Warning: SQLite3::exec() [sqlite3.exec]: unable to open database file in /var/www/test.php on line 3
  </code></pre>
  
  <p>Using this code:</p>
  
  <pre><code>$db = new SQLite3('./data1.db');
  $db-&gt;exec("INSERT INTO table1 (fileName) VALUES ('test.txt')");
  </code></pre>
  
  <p>But the strange thing is that I can read from the database: (this works)</p>
  
  <pre><code>print_r($db-&gt;querySingle('SELECT fileName FROM table1', true));
  </code></pre>
  
  <p>I'm running PHP 5.3.0</p>