ASP.net 与 PHP(选择什么)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5932551/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 22:56:45  来源:igfitidea点击:

ASP.net vs PHP (What to choose)

phpasp.net

提问by Jame

I have been assigned a task to develop a new web application. Its a kind of social web applications, for the sake of understanding you can say its similar to facebook. Now before start developing such huge application i have few questions to ask:

我被分配了开发新 Web 应用程序的任务。它是一种社交网络应用程序,为了便于理解,您可以说它类似于facebook。现在在开始开发如此庞大的应用程序之前,我有几个问题要问:

  • First, Does the tool and programing language affects the performance of web application?
  • 首先,工具和编程语言是否会影响 Web 应用程序的性能?

e.g I made two web pages both have same contents over it, the only difference is that one page is made in ASP.net(with C#) and other is made in PHP, now which page opens more fast at user end? The only purpose of asking this question is that i want to choose one language which is more faster from end user prospective

例如,我制作了两个网页都具有相同的内容,唯一的区别是一个页面是在 ASP.net(使用 C#)中制作的,另一个是在 PHP 中制作的,现在哪个页面在用户端打开得更快?问这个问题的唯一目的是我想从最终用户的角度选择一种更快的语言

  • Same is the case with database do i need to choose some specific database or i can use any database of my choice, currently i am considering:
  • 数据库也是如此,我是否需要选择一些特定的数据库,或者我可以使用我选择的任何数据库,目前我正在考虑:

1.MS SQL Server
2.MY SQL and
3.Postgres

1.MS SQL Server
2.MY SQL 和
3.Postgres

回答by Matt Mitchell

This is impossible to answer and has been brought up manymanytimes before. Do a search, read those threads, then pick the framework you and your team have experience with.

这是不可能的回答,并已提出了很多很多以前的时间。进行搜索,阅读这些主题,然后选择您和您的团队有经验的框架。

回答by IAmTimCorey

You can have great success and great performance either way. MSDN runs off of ASP.NET so you know it can perform well. PHP runs a lot of the top websites in the world. The same can be said of the databases as well. You really need to choose based upon your skills, the skills of your team, possible specific features that you need/want that one does better than the other, and even the servers that you want to run this site.

无论哪种方式,您都可以取得巨大的成功和出色的表现。MSDN 运行于 ASP.NET,因此您知道它可以很好地运行。PHP 运行着许多世界顶级网站。数据库也是如此。您确实需要根据您的技能、团队的技能、您需要/希望一个比另一个做得更好的可能的特定功能,甚至是您想要运行此站点的服务器来进行选择。

If I were building it, I would lean towards PHP because probably everything you want to do has been done before (with code examples how) and because hosting is so much easier to get (and cheaper because you don't have the licensing issues to deal with compared to Windows hosting). For the same reason, I would choose MySQL as well. It is a great database platform and the price is right.

如果我正在构建它,我会倾向于 PHP,因为可能您想做的所有事情之前都已经完成(带有代码示例),并且因为托管更容易获得(而且更便宜,因为您没有许可问题)处理与 Windows 托管相比)。出于同样的原因,我也会选择 MySQL。这是一个很棒的数据库平台,而且价格合适。

回答by Joshua - Pendo

There are a couple of topics that might provide you with an answer. You could also run some tests yourself. Doesn't see too hard to get some loops started and adding a timer to calculate the execution time ;-)

有几个主题可能会为您提供答案。您也可以自己运行一些测试。开始一些循环并添加一个计时器来计算执行时间并不难;-)