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.
Ben bu hatayı alıyorum:
Warning: SQLite3::exec() [sqlite3.exec]: unable to open database file in /var/www/test.php on line 3
Bu kodu kullanarak:
$db = new SQLite3('./data1.db');
$db->exec("INSERT INTO table1 (fileName) VALUES ('test.txt')");
Ama garip bir şey veritabanından okuyabilir olduğunu: (bu işleri)
print_r($db->querySingle('SELECT fileName FROM table1', true));
PHP 5.3.0 koşuyorum