-3

I'm trying to figure out how I could send information and arrange a simple database on my home computer. I'd want to send the information through my phone while I'm away from home. The information is simple it's to keep track of how much money I spend so I would need to send an amount spent, the date (wouldn't matter as much), and the reason it was spent, then store that somewhere and be read when I get home. Any ideas?

4

1 回答 1

-1

您需要将您的家庭路由器端口转发到某个端口(即 80 或 8080)。然后,您可以编写一个小型服务器程序或简单地托管一个带有一些脚本语言扩展(即 PHP)的 HTTP 服务器来与您的数据库进行通信。您的程序可以定义不同的服务调用来管理不同的任务(即插入、删除、更新条目)。使用极简 REST 框架将减少花在编码上的时间。

编辑:

您的手机可以使用这些服务调用通过其浏览器或您编写的某些客户端程序来操作您的数据库。

于 2013-09-26T03:06:35.097 回答