1

单从html源码来看,能说出一个网站的底层解决方案吗?例如, http: //foursquare.com/使用了哪些技术?PHP+MySQL?

4

6 回答 6

3

你评论说:

感谢您的回复布赖恩。我们正在启动我们的新社交网站,并尝试找到最佳的可扩展解决方案。Foursquare 是一个成功的例子,所以我们想效仿。

这不是一个很好的方法。几乎所有常见的网络语言和数据库后端都有成功的社交网络。PHP、Ruby、Perl、Python 等 ... MySQL、PostgreSQL、MongoDB 等。

一项特定的技术几乎肯定不会成败您的网站。您应该选择适合您的特定需求和开发团队专业知识的最佳技术,而不是根据 Foursquare(或任何其他网站)选择的内容进行选择。

于 2010-11-15T21:41:04.477 回答
2

I don't think you could necessarily tell from the HTML source, unless it had some sort of metadata in it that gave it away. You could try instead to look at the HTTP response headers that come over the wire when you request a page, since most server-side platforms will self-identify in HTTP headers by default unless the server admin explicitly disables them. As for the database platform, that would be really difficult to tell regardless of the platform, since just about any server-side app code platform (PHP, ASP.NET, Java, etc) is interoperable with just about any database platform.

Out of curiosity, why do you want to know this?

于 2010-11-15T21:23:39.093 回答
1

It uses Scala/Lift

于 2010-11-15T21:23:01.157 回答
1

您可以检查退货的标题...

以四方为例。

服务器是:nginx

http://network-tools.com/default.asp?prog=httphead&host=foursquare.com

于 2010-11-15T21:26:18.910 回答
1

Foursquare 最初是用 PHP 编写的,但是由于性能问题,它不久前用 Scala / Lift 重新编写。

于 2010-11-15T21:27:42.327 回答
1

正如他们在上次整个事情崩溃时详述的那样,他们的数据都在 MongoDB 中。

于 2010-11-15T21:30:22.437 回答