Adobe AIR的使用PHP / MySQL或SQLite的 [英] Adobe AIR with PHP/MySql or SQLite

查看:172
本文介绍了Adobe AIR的使用PHP / MySQL或SQLite的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么会是一个更好的选择,使驱动的数据库 Adobe AIR的(桌面)的应用程序?

What would be a better choice for making a database driven Adobe AIR(Desktop) application?

  1. 采用PHP + Mysql与AIR
        或
  2. 使用SQLite
  1. Using PHP+MySql with AIR
    OR
  2. Using SQLite

如果我选择的SQLite,那么我不能重用我的$ C $下 在线申请。

If I choose SQLite, then I cannot reuse my code for an online application.

如果我选择1,我必须阻止用户的机器几个端口号。 另外,我使用的XAMPP提供PHP与MySQL的用户,所以 XAMPP打开一个命令行窗口,只要它的运行。而且,用户 弄不清楚那是什么窗口?它使得最终用户 经验略显混乱。

If I choose 1, I have to block few port numbers on User's machine. Also, I am using XAMPP for providing the user with PHP and MySql, so XAMPP opens up a command window as long as it's running. And, users get confused about what's that window for? It makes the end user experience slightly confusing.

推荐答案

我肯定会使用SQLite作为其包含在空气中。

I'd definitely use SQLite as its included in Air.

我建议;写你的code两部分。它使用JSON饲料来填充自己的用户界面,以及API提供JSON数据。当涉及到端口的应用程序到Web,您可以使用相同的用户界面,但与改写API。

May I suggest; write your code in two sections. The UI which uses a JSON feed to populate itself, and the API to provide the JSON data. When it comes to port the application to the web you can use the same UI but with a rewritten API.

这篇关于Adobe AIR的使用PHP / MySQL或SQLite的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆