且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要iOS应用程序的基本服务器后端

更新时间:2023-01-09 21:30:22

我会选择共享主机: http://webfaction.com http://linode.com 。您的共享主机无法容忍这么多流量,您不太可能容忍它。我毫不费力地在Webfaction上运行了一些高流量的应用程序。

I would go with shared hosting: http://webfaction.com or http://linode.com. It's unlikely that you're going to have so much traffic that your shared host will not be able to tolerate it. I run a few high traffic apps on Webfaction without difficulty.

根据您对应用功能的描述,它似乎并不太复杂,并且不难扩展。

From your description of the functionality in your app, it doesn't seem too complicated, and wouldn't be difficult to scale.

OS X上的PHP开发环境:

OS X已经安装了PHP和Apache。它只需要启用,此页面描述了实现它的过程:

OS X has PHP and Apache already installed. It just needs to be enabled, this page describes the process to get it going:

http://foundationphp.com/tutorials/php_leopard.php

或者你可以安装像MAMP这样的包( http://www.mamp.info/en/index.html ),它将为您提供有一个完整的堆栈。 (这也是我的建议。)

Alternatively you can install a package like MAMP ( http://www.mamp.info/en/index.html ), which will provide you with a full stack. (And is what I would recommend.)

代码:

As对于代码,您很可能使用ASIHttpRequest对服务器上的URI执行POST请求。 URI上的脚本将连接到数据库,存储字符串,然后断开与数据库的连接。

As for the code, you'll more than likely use ASIHttpRequest to do a POST request to URI on your server. The script at the URI will connect to the database, store the string, and then disconnect from the database.

少于10行代码。