$db = new PDO("sqlite:file1.db");
if(!file_exists ("file1.db"))
{
return;
}
$db = new PDO("sqlite:file1.db");
нет другого способа запретить создание пустого файла БД? The database is opened for reading and writing, and is created if it does not already exist. This is the behavior that is always used for sqlite3_open()