[英]stand alone php app
What is the best way to build a non web browser stand alone php app that works with some sort of database without requiring the user to install a database server. 构建非Web浏览器独立php应用程序的最佳方法是什么,该应用程序适用于某种数据库而无需用户安装数据库服务器。 Or am i just asking too much?
或者我只是要求太多?
Embed the SQLite database in your app, then configure PHP to talk to the SQLite database: 在您的应用程序中嵌入SQLite数据库,然后配置PHP以与SQLite数据库通信:
Have a look at php compilers, you'll end up with a binary for people to run. 看看php编译器,你最终会得到一个二进制文件供人们运行。 It could be a desktop GUI application, or a "web server in a box" type of thing.
它可以是桌面GUI应用程序,也可以是“盒子中的Web服务器”类型的东西。
As Oakcool has mentioned, check out PHP-GTK. 正如Oakcool所提到的,请查看PHP-GTK。 It is a GUI development tool on the similar lines of MFC for C/C++.
它是一个类似于MFC for C / C ++的GUI开发工具。
PHP-GTK alongwith SQLite or a text file as others mentioned above should do the trick. PHP-GTK以及SQLite或上面提到的其他文本文件应该可以解决问题。
I'd suggest you try miniPHP . 我建议你试试miniPHP 。 It is basically an IDE around Winbinder ;
它基本上是围绕Winbinder的IDE; it lets you concentrate on writing PHP while it takes care of details like compiling the application.
它让你专注于编写PHP,同时它负责编译应用程序等细节。 You can create either GUI or command-line apps and it works just fine with both SQLite and MySQL.
您可以创建GUI或命令行应用程序,它可以与SQLite和MySQL一起使用。 It has a preview mode and some debugging capabilities too.
它还具有预览模式和一些调试功能。
Here is an idea: information can be stored in XML and thus usage of database can be avoided. 这是一个想法:信息可以存储在XML中,因此可以避免使用数据库。 That will work only for certain kind of purposes of course.
这当然只适用于某些目的。
I dont know how to use PHP as standalone programming language, I mean without using a web server and a browser.i can answer your other question. 我不知道如何使用PHP作为独立的编程语言,我的意思是不使用Web服务器和browser.i可以回答您的其他问题。
SQLite is a database system (to be more specific: a library!) which provides you all the basic capabilities of SQL database without needing to install any specific database servers .But you do need to copy a small .dll file(sqlite3.dll i suppose) into your working dirctory.The file is only a very small one,but you get all of the basic capabilities of a database such as INSERT DELETE UPDATE SELECT etc..Its a great light weight database..i mean it..really lightweight. SQLite是一个数据库系统 (更具体地说是一个库!),它为您提供SQL数据库的所有基本功能, 而无需安装任何特定的数据库服务器 。但是您需要复制一个小的.dll文件(sqlite3.dll i)进入你的工作目录。该文件只是一个非常小的文件,但你获得了数据库的所有基本功能,如INSERT DELETE UPDATE SELECT等。它是一个很好的轻量级数据库..我的意思是..真的轻巧。
also PHP has inbuilt support for SQLite database.so compatibility will never be a problem PHP也内置了对SQLite数据库的支持。兼容性永远不会成为问题
Have a look at their home page https://sqlite.org/ 看看他们的主页https://sqlite.org/
This is what they describe themselves: SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. 这就是他们自己描述的内容: SQLite是一个软件库,它实现了一个独立的,无服务器,零配置的事务SQL数据库引擎。 SQLite is the most widely deployed SQL database engine in the world.
SQLite是世界上部署最广泛的SQL数据库引擎。
Checkout phpdesktop that gives you: 结帐phpdesktop ,为您提供:
Take a look at this 3 links 看看这3个链接
PHP GTK enter code here
http://gtk.php.net/ PHP GTK
enter code here
http://gtk.php.net/
FLEX http://www.adobe.com/products/flex/?promoid=BPDEQ FLEX http://www.adobe.com/products/flex/?promoid=BPDEQ
AIR http://www.adobe.com/products/air/ AIR http://www.adobe.com/products/air/
I think any those will help you, check it out. 我认为任何会帮助你,检查出来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.