# 获取目录中的所有 .dbi 文件
$databases_list = glob("directory/*.dbi");
# 循环它
foreach ($databases_list as $db_name){
# 清理文件名
$db_name = str_replace('directory/','',str_replace('.dbi','',$db_name));
# 数据库连接
$db = new SQLite3($db_name);
$result = $db->query("SELECT * FROM your_table_name");
while($data = $result->fetchArray()){
echo $data['column']."<hr>";
}
}