如何为基于PHP的网站编写桌面应用程序 [英] How can I write desktop application for my PHP-based website

查看:89
本文介绍了如何为基于PHP的网站编写桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有php网站

,因为大多数用户大部分时间都处于离线状态,我尝试开发C#应用程序,用户可以在其上输入数据并将其保存到本地数据库并同步用php网站连接到互联网

我该怎么做?

尝试用c#app使用mysql?

使用网络服务?

使用REST api?

使用JSON?



我尝试了什么:



不决定如何实现这个

i have php web site
because most of our users are offline most of the time,i try to develop C# application that user can enter data on it and save it to local database and sync it with php website when they connect to internet
how can i do this?
try to use mysql with c# app?
use web-service?
use REST api?
use JSON?

What I have tried:

do not decide how to implement this

推荐答案

我认为无论是否重要您使用MySQL或SQL Server或其他一些存储。您可以使用XML或CSV等文本文件。这取决于数据的复杂性和数量。当我说复杂性时,如果它是数据库中的多个表,那么它比单个表更复杂。



您可以编写一个存储数据的桌面应用程序当然然后它可以将数据导出到文本文件或多个文本文件。如果有多个文本文件,那么应用程序可以将多个文件压缩成一个。然后,当他们连接到互联网时,他们只需上传文件然后进行处理。您可能希望有一种方法来确保数据只处理一次。
I think it does not much matter whether you use MySQL or SQL Server or some other storage. You might be able to use XML or a text file such as CSV. That depends on the complexity of the data and the volume. When I say complexity, if it would be multiple tables in a database then that is more complex than a single table.

You could write a desktop application that stores the data of course and then it could export the data to a text file or multiple text files. If multiple text files then the application could zip the multiple files into one. Then when they connect to the internet, they just upload the file and then you process it. You might want to have a way to ensure the data is processed once and only once.


这篇关于如何为基于PHP的网站编写桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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