简体   繁体   English

如何使用php访问存储在CD上的SQLite数据库文件?

[英]How to access an SQLite database file stored on cd using php?

I have a small mySQL database and a few simple php based webpages that query the database, generate html tables and present them in the browser. 我有一个小型的mySQL数据库和一些基于php的简单网页,这些网页可查询数据库,生成html表并将其显示在浏览器中。 The database is no longer being updated. 数据库不再被更新。 So, searching and viewing subsets of the data is all that is required. 因此,只需要搜索和查看数据的子集。

Some users are interested in distributing the searchable database on a cd or usb memory stick. 一些用户对将可搜索数据库分布在cd或usb记忆棒上感兴趣。 SQLite seems to offer the answer, but I don't understand what is needed to make this work. SQLite似乎提供了答案,但是我不知道要完成这项工作需要什么。 What will be required to make a web browser based "app" work from a memory stick in the absence of a server like xampp? 在没有xampp之类的服务器的情况下,要使用记忆棒使基于Web浏览器的“应用程序”工作需要什么?

What you want is called a "standalone server". 您想要的被称为“独立服务器”。 This is very common in almost every other modern language except PHP, for some reason. 由于某种原因,这在除PHP之外的几乎所有其他现代语言中都很常见。 Googling "standalone php server" reveals several options: 谷歌搜索“独立php服务器”揭示了几种选择:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM