dimanche 8 novembre 2015

php SQLite3 fatal error

i made a php website that read from sqllite DB. Its work fine in my pc, but when I tried to move it to my laptop it game me this error

Fatal error: Uncaught exception 'Exception' with message 'Unable to open database: unable to open database file' in C:\xampp\htdocs\php1\phpPage.php:28 Stack trace: #0

The only diffrent is that now I putted the SQLite in the file, so I call it like that:

$db = new SQLite3('C:/Users/user/Desktop/db/sqlDB.db');

Afer reading a bit over the web, I think it might be a premission error, but I cant fix it. Any idea how to fix it?

Aucun commentaire:

Enregistrer un commentaire