PHP是用于快速和简单的网站,而在更复杂的网站中使用其他语言?

时间:2021-11-10 15:42:51

I just put this question in serverfault.com and I know that this question may be rejected in *.

我刚刚在serverfault.com上提出了这个问题,我知道这个问题在*中可能会被拒绝。

But I thought programmers know better.

但我认为程序员知道得更多。

This stat shows that PHP is used by 75.2% of all the websites whose server-side programming language.

这个统计数据显示,在所有使用服务器端编程语言的网站中,有75.2%使用PHP。

http://w3techs.com/technologies/overview/programming_language/all

http://w3techs.com/technologies/overview/programming_language/all

And this page shows that PHP is the least used server-side language in ranked by usage on top websites

这个页面显示了PHP是最不常用的服务器端语言

http://w3techs.com/technologies/topsite/programming_language

http://w3techs.com/technologies/topsite/programming_language

Q1. Does this mean PHP is used for quick and easy website where other languages are used in more complex websites?

Q1。这是否意味着PHP被用于快速简单的网站,而其他语言则被用于更复杂的网站?

Q2. Why PHP is ranked at the bottom? Or why big company tend to use other language than PHP?

Q2。为什么PHP排在最后?或者为什么大公司倾向于使用PHP以外的语言?

Update: I know that facebook and other biggies uses PHP. But it does not tell why there are more other languages are used in top websites.

更新:我知道facebook和其他巨头使用PHP。但它并没有说明为什么在*网站上使用更多的其他语言。

12 个解决方案

#1


5  

Not neccessarily there are lots of very complicated websites made with PHP a good example of this is Facebook

没有必要,有很多非常复杂的网站用PHP做了一个很好的例子就是Facebook。

#2


3  

Facebook, Wikipedia (MediaWiki), Flickr, Digg are all running on PHP. And they are definitely not quick and easy websites ;) Each one of them has an huge user base and hosts and deals with huge amounts of data.

Facebook,*(MediaWiki), Flickr, Digg都在PHP上运行。而且它们绝对不是快速简单的网站;它们每个都有庞大的用户群和主机,并处理大量的数据。

#3


2  

PHP

PHP

  • has a very low entry level
  • 入门水平很低
  • is very fast to learn for no experience programmers
  • 没有经验的程序员学习很快吗?
  • it is very forgiving with newbie errors
  • 对新手的错误很宽容
  • it has excellent support (including here)
  • 它有很好的支持(包括这里)
  • you don't have to do builds, compiling and other complicated stuff
  • 您不必进行构建、编译和其他复杂的工作
  • it can accomplish almost everything until you hit a wall and you'll need to retool (facebook style)
  • 它可以完成几乎所有的事情,直到你撞墙,你需要重新装备(facebook风格)

#4


1  

Q1

第一季度

First of all this means, that "top sites" dont use, what everybody else use. Small sites tends to use a ready-to-use software, like wordpress, drupal, ..., which runs on nearly every hoster. "top sites" on the other hand can manage theire own server, write theire own software and therefore doesnt depend on existing software.

首先,这意味着“*网站”不使用其他人使用的内容。小网站倾向于使用现成的软件,比如wordpress, drupal……几乎所有的家庭都是如此。另一方面,“*网站”可以管理自己的服务器,编写自己的软件,因此不依赖现有的软件。

I would not assume, that these sites are all really more complex.

我不会认为,这些网站真的都更复杂。

Q2 Dont know, what you want to know. Its located at the bottom of the list, because 3.2 is smaller than 3.5 ^^

不知道,你想知道的。它位于列表的底部,因为3.2小于3.5 ^ ^

#5


1  

It's not so much a matter of the language itself, otherwise python would score much higher for low-profile web sites, since it's easier to learn and has fewer pitfalls than PHP.

这并不是语言本身的问题,否则python会在低调的web站点上获得更高的分数,因为它更容易学习,而且比PHP的缺陷更少。

However, PHP is the only language you can really expect on a cheap shared host, and this makes it the only viable choice when you don't get to pick your platform specifics. Consequently, shrink-wrap software targeted at such environments uses PHP. High-profile sites run on their own servers, and the choice of language is determined by other factors: ease of use (a.k.a. developer performance), suitability for the problem domain, suitability for the preferred programming paradigm (procedural, object-oriented, data-centric, functional, etc.), the team's personal preferences and experience, available libraries, runtime performance, existing codebase, existing system components.

然而,在廉价的共享主机上,PHP是您真正期望的唯一语言,这使它成为您无法选择平台细节时唯一可行的选择。因此,针对这种环境的收缩包装软件使用PHP。知名网站运行在自己的服务器上,语言的选择是由其他因素:易用性(又名开发人员性能),适用性问题域,是否适合首选的编程范式(过程、面向对象、以数据为中心、功能等),团队的个人喜好和经验,可用库,运行时性能,现有的代码库,现有的系统组件。

#6


1  

No, it can mean that PHP servers are easier to get (from any ISP) as compared to other technologies. For java, you will need to setup Apache Server, Your own Java server (e.g. GlassFish, JBoss, or Tomcat (it's a servlet container)) and that can be costly whereas PHP is readily setup when registering for a DNS.

不,这可能意味着与其他技术相比,PHP服务器更容易获得(任何ISP)。对于java,您将需要设置Apache服务器、您自己的java服务器(例如GlassFish、JBoss或Tomcat(它是一个servlet容器)),而在注册DNS时,PHP是很容易设置的。

I wrote a PHP system for a friend of mine (after he bought his Domain Name and a server box) because I felt lazy to setup java.

我为我的一个朋友写了一个PHP系统(在他买了他的域名和一个服务器盒之后),因为我懒得安装java。

I don't know if this enlightens your questions.

我不知道这是否能启发你们的问题。

#7


1  

Much of the answer has to do with several things:

答案很大程度上与以下几件事有关:

  1. The evolution of software development inside corporations.
  2. 公司内部软件开发的演变。
  3. The evolution of software engineers compared with web developers.
  4. 软件工程师和web开发人员的进化。
  5. Perception in general.
  6. 知觉。

Firstly, the evolution of software development inside of corporations. Many years ago there was a strong migration from Cobol and C into (what was then) the latest enterprise stack of Java/J2EE. For many mid to large companies this evolution was a natural transition into the web application architecture. Any "serious" application had to be done in Java/J2EE. Of course many Microsoft based shops went to .NET (either VB or later C# form). These mid to large businesses didn't get much into "light" front end web development especially using PHP since PHP was looked about as a quick way to throw together some logic on a simple website. Since then, of course, PHP has transformed itself into a viable object oriented enterprise language but still to many in the mid to large corporations it is not as viable compared to the enterprise proven architectures of J2EE and .NET.

首先,企业内部软件开发的演变。许多年前,从Cobol和C迁移到(当时是什么)Java/J2EE的最新企业堆栈。对于许多中小型企业来说,这种演变是向web应用程序体系结构的自然过渡。任何“严重”的应用程序都必须在Java/J2EE中完成。当然,许多基于微软的商店都去了。net (VB或c# form)。这些中小型企业对“轻量级”前端web开发没有太多兴趣,特别是使用PHP,因为PHP被认为是在一个简单的网站上拼凑一些逻辑的快速方法。当然,从那时起,PHP就已经转变为一种面向对象的企业语言,但对于许多中、大型企业来说,与J2EE和. net的企业已证明的体系结构相比,它仍然是不可行的。

In the 80's and early 90's much of the people programming were software engineers (graduated with CS degrees) and they mostly migrated to the more "hard-core" languages of C/C++, Java, and eventually C#. These languages were looked upon as serious languages. In the late 90's an influx of web developers came into the picture many of which came from the HTML/design background and they were able to understand programming concepts and pushed more on the scripting languages like PHP. Again originally PHP was used by many of these web developers and was looked upon as an immature language (i.e., not serious).

在80年代和90年代早期,编程人员大多是软件工程师(以CS学位毕业),他们大多迁移到C/ c++、Java和最终c#的“核心”语言中。这些语言被视为严肃的语言。在90年代后期,大量的web开发人员进入了这幅图,其中许多来自于HTML/设计背景,他们能够理解编程概念,并在PHP之类的脚本语言上更上一层楼。最初,许多web开发人员都使用PHP,并将其视为一种不成熟的语言(即:,而不是严重)。

As for perception, many mid to large businesses won't touch php because of bad security perceptions or not a "serious" language and would only use it for slightly greater than static web sites.

至于感知,许多中到大的企业不会接触到php,因为它的安全性不高,或者不是一种“严重”的语言,只会比静态的web站点稍微大一些。

The reality of programming languages today is that it matters much less about the language and more about the developer/engineer and their ability to use the right programming principles and architecture for creating a scalable and well-maintained system. For example I believe rails (ruby on rails) provides a great model for building software which can be followed now in php and several other languages. Many are following suit.

当今编程语言的现实是,编程语言更重要的不是语言,而是开发人员/工程师,以及他们使用正确的编程原则和体系结构来创建可伸缩和维护良好的系统的能力。例如,我相信rails (ruby on rails)为构建软件提供了一个很好的模型,可以在php和其他几种语言中使用。许多人紧随其后。

An old photography teacher once told me that he could take any cheap camera and still take a better picture than any of his students regardless of whether or not they had the best camera on the market. I feel the same way about software development. There are many programmers out there (many of which use this site) who can probably create outstanding software (front-end, back-end, whatever) using any number of programming languages including PHP because of their ability to follow the best principles for building software. Programmers tend to use the tool they work best (and most efficiently) with.

一位老摄影老师曾经告诉我,他可以拿任何便宜的相机,而且不管市场上有没有最好的相机,他都能比他的学生拍出更好的照片。我对软件开发也有同感。有许多程序员(其中许多人使用这个站点)可能会使用包括PHP在内的任意数量的编程语言创建出色的软件(前端、后端等等),因为他们能够遵循构建软件的最佳原则。程序员倾向于使用他们最有效(且最有效)的工具。

#8


0  

PHP is the easiest to deploy because it's almost always already setup on a web server. Other languages never seem to be setup to actually deploy websites on shared hosting or anywhere else... you have to do it yourself or pay someone to specifically allow the language to serve web content. As far as I have experienced this is the sole reason other languages aren't being adopted at a quick rate. Python has a great syntax and it's much more intuitive in a lot of ways compared to PHP but you don't see it ready to deploy a site on hosting plans very often.

PHP是最容易部署的,因为它几乎总是已经安装在web服务器上。其他语言似乎从来没有设置实际部署网站在共享主机或其他任何地方……你必须自己做,或者付钱给别人,让语言专门为网络内容服务。据我所知,这是其他语言不能迅速被采用的唯一原因。Python有很好的语法,与PHP相比,它在很多方面都更直观,但您并不经常看到它准备在托管计划上部署站点。

#9


0  

if I want my application to install in a lot of server, I use PHP. today, which web host company don't include PHP as they hosting feature?

如果我想让我的应用程序安装在很多服务器上,我就使用PHP。今天,哪个web主机公司没有包含PHP作为托管特性?

if I want to quick development application, I use ColdFusion, since this language (to me) is more easy to use and provide most commonly used feature for web application

如果我想快速开发应用程序,我使用ColdFusion,因为这种语言(对我来说)更容易使用,并为web应用程序提供最常用的特性

once again, there are no best language, it's depend on your need

再说一遍,没有最好的语言,这取决于你的需要

#10


0  

Q1. Does this mean PHP is used for quick and easy website where other languages are used in more complex websites?

Q1。这是否意味着PHP被用于快速简单的网站,而其他语言则被用于更复杂的网站?

A1: Yes it means that PHP is used in quick and easy websites and other languages are used in more complex websites.

A1:是的,它的意思是PHP在快速简单的网站中使用,而其他语言在更复杂的网站中使用。

Q2. Why PHP is ranked at the bottom? Or why big company tend to use other language than PHP?

Q2。为什么PHP排在最后?或者为什么大公司倾向于使用PHP以外的语言?

A2: Because the guys which prefer other languages to PHP do not think the other way. They do not estimate that

答:因为那些喜欢其他语言而不喜欢PHP的人不会这么想。他们没有估计

  1. PHP Hosting and servers are much cheaper to use than other server so that they can use more servers.
  2. 使用PHP主机和服务器比使用其他服务器要便宜得多,这样它们就可以使用更多的服务器。
  3. PHP Development is fast so that they can finish faster.
  4. PHP开发速度很快,因此可以更快地完成。
  5. Good PHP Developer are easy to find so that they have plenty of choice.
  6. 好的PHP开发人员很容易找到,因此他们有很多选择。
  7. PHP have many open sources projects so that they don't have to reinvent the wheel.
  8. PHP有许多开放源码项目,所以它们不必重新发明*。

#11


0  

I've done lots of Web sites/apps, both simple & complex & don't know the first thing about PHP (other than how to spell it). Can't say I've missed it, but that's just me.

我做过很多网站/应用,简单又复杂,除了如何拼写之外,我对PHP一无所知。我不能说我错过了,但那只是我。

#12


0  

PHP is excellent for front-end layer, while other languages like Java could be used for the back-end layer of a complex and multi-level application. To do so you can use either SOAP or even better RESTful web services.

PHP非常适合前端层,而Java等其他语言可以用于复杂的多层应用程序的后端层。为此,您可以使用SOAP或更好的RESTful web服务。

#1


5  

Not neccessarily there are lots of very complicated websites made with PHP a good example of this is Facebook

没有必要,有很多非常复杂的网站用PHP做了一个很好的例子就是Facebook。

#2


3  

Facebook, Wikipedia (MediaWiki), Flickr, Digg are all running on PHP. And they are definitely not quick and easy websites ;) Each one of them has an huge user base and hosts and deals with huge amounts of data.

Facebook,*(MediaWiki), Flickr, Digg都在PHP上运行。而且它们绝对不是快速简单的网站;它们每个都有庞大的用户群和主机,并处理大量的数据。

#3


2  

PHP

PHP

  • has a very low entry level
  • 入门水平很低
  • is very fast to learn for no experience programmers
  • 没有经验的程序员学习很快吗?
  • it is very forgiving with newbie errors
  • 对新手的错误很宽容
  • it has excellent support (including here)
  • 它有很好的支持(包括这里)
  • you don't have to do builds, compiling and other complicated stuff
  • 您不必进行构建、编译和其他复杂的工作
  • it can accomplish almost everything until you hit a wall and you'll need to retool (facebook style)
  • 它可以完成几乎所有的事情,直到你撞墙,你需要重新装备(facebook风格)

#4


1  

Q1

第一季度

First of all this means, that "top sites" dont use, what everybody else use. Small sites tends to use a ready-to-use software, like wordpress, drupal, ..., which runs on nearly every hoster. "top sites" on the other hand can manage theire own server, write theire own software and therefore doesnt depend on existing software.

首先,这意味着“*网站”不使用其他人使用的内容。小网站倾向于使用现成的软件,比如wordpress, drupal……几乎所有的家庭都是如此。另一方面,“*网站”可以管理自己的服务器,编写自己的软件,因此不依赖现有的软件。

I would not assume, that these sites are all really more complex.

我不会认为,这些网站真的都更复杂。

Q2 Dont know, what you want to know. Its located at the bottom of the list, because 3.2 is smaller than 3.5 ^^

不知道,你想知道的。它位于列表的底部,因为3.2小于3.5 ^ ^

#5


1  

It's not so much a matter of the language itself, otherwise python would score much higher for low-profile web sites, since it's easier to learn and has fewer pitfalls than PHP.

这并不是语言本身的问题,否则python会在低调的web站点上获得更高的分数,因为它更容易学习,而且比PHP的缺陷更少。

However, PHP is the only language you can really expect on a cheap shared host, and this makes it the only viable choice when you don't get to pick your platform specifics. Consequently, shrink-wrap software targeted at such environments uses PHP. High-profile sites run on their own servers, and the choice of language is determined by other factors: ease of use (a.k.a. developer performance), suitability for the problem domain, suitability for the preferred programming paradigm (procedural, object-oriented, data-centric, functional, etc.), the team's personal preferences and experience, available libraries, runtime performance, existing codebase, existing system components.

然而,在廉价的共享主机上,PHP是您真正期望的唯一语言,这使它成为您无法选择平台细节时唯一可行的选择。因此,针对这种环境的收缩包装软件使用PHP。知名网站运行在自己的服务器上,语言的选择是由其他因素:易用性(又名开发人员性能),适用性问题域,是否适合首选的编程范式(过程、面向对象、以数据为中心、功能等),团队的个人喜好和经验,可用库,运行时性能,现有的代码库,现有的系统组件。

#6


1  

No, it can mean that PHP servers are easier to get (from any ISP) as compared to other technologies. For java, you will need to setup Apache Server, Your own Java server (e.g. GlassFish, JBoss, or Tomcat (it's a servlet container)) and that can be costly whereas PHP is readily setup when registering for a DNS.

不,这可能意味着与其他技术相比,PHP服务器更容易获得(任何ISP)。对于java,您将需要设置Apache服务器、您自己的java服务器(例如GlassFish、JBoss或Tomcat(它是一个servlet容器)),而在注册DNS时,PHP是很容易设置的。

I wrote a PHP system for a friend of mine (after he bought his Domain Name and a server box) because I felt lazy to setup java.

我为我的一个朋友写了一个PHP系统(在他买了他的域名和一个服务器盒之后),因为我懒得安装java。

I don't know if this enlightens your questions.

我不知道这是否能启发你们的问题。

#7


1  

Much of the answer has to do with several things:

答案很大程度上与以下几件事有关:

  1. The evolution of software development inside corporations.
  2. 公司内部软件开发的演变。
  3. The evolution of software engineers compared with web developers.
  4. 软件工程师和web开发人员的进化。
  5. Perception in general.
  6. 知觉。

Firstly, the evolution of software development inside of corporations. Many years ago there was a strong migration from Cobol and C into (what was then) the latest enterprise stack of Java/J2EE. For many mid to large companies this evolution was a natural transition into the web application architecture. Any "serious" application had to be done in Java/J2EE. Of course many Microsoft based shops went to .NET (either VB or later C# form). These mid to large businesses didn't get much into "light" front end web development especially using PHP since PHP was looked about as a quick way to throw together some logic on a simple website. Since then, of course, PHP has transformed itself into a viable object oriented enterprise language but still to many in the mid to large corporations it is not as viable compared to the enterprise proven architectures of J2EE and .NET.

首先,企业内部软件开发的演变。许多年前,从Cobol和C迁移到(当时是什么)Java/J2EE的最新企业堆栈。对于许多中小型企业来说,这种演变是向web应用程序体系结构的自然过渡。任何“严重”的应用程序都必须在Java/J2EE中完成。当然,许多基于微软的商店都去了。net (VB或c# form)。这些中小型企业对“轻量级”前端web开发没有太多兴趣,特别是使用PHP,因为PHP被认为是在一个简单的网站上拼凑一些逻辑的快速方法。当然,从那时起,PHP就已经转变为一种面向对象的企业语言,但对于许多中、大型企业来说,与J2EE和. net的企业已证明的体系结构相比,它仍然是不可行的。

In the 80's and early 90's much of the people programming were software engineers (graduated with CS degrees) and they mostly migrated to the more "hard-core" languages of C/C++, Java, and eventually C#. These languages were looked upon as serious languages. In the late 90's an influx of web developers came into the picture many of which came from the HTML/design background and they were able to understand programming concepts and pushed more on the scripting languages like PHP. Again originally PHP was used by many of these web developers and was looked upon as an immature language (i.e., not serious).

在80年代和90年代早期,编程人员大多是软件工程师(以CS学位毕业),他们大多迁移到C/ c++、Java和最终c#的“核心”语言中。这些语言被视为严肃的语言。在90年代后期,大量的web开发人员进入了这幅图,其中许多来自于HTML/设计背景,他们能够理解编程概念,并在PHP之类的脚本语言上更上一层楼。最初,许多web开发人员都使用PHP,并将其视为一种不成熟的语言(即:,而不是严重)。

As for perception, many mid to large businesses won't touch php because of bad security perceptions or not a "serious" language and would only use it for slightly greater than static web sites.

至于感知,许多中到大的企业不会接触到php,因为它的安全性不高,或者不是一种“严重”的语言,只会比静态的web站点稍微大一些。

The reality of programming languages today is that it matters much less about the language and more about the developer/engineer and their ability to use the right programming principles and architecture for creating a scalable and well-maintained system. For example I believe rails (ruby on rails) provides a great model for building software which can be followed now in php and several other languages. Many are following suit.

当今编程语言的现实是,编程语言更重要的不是语言,而是开发人员/工程师,以及他们使用正确的编程原则和体系结构来创建可伸缩和维护良好的系统的能力。例如,我相信rails (ruby on rails)为构建软件提供了一个很好的模型,可以在php和其他几种语言中使用。许多人紧随其后。

An old photography teacher once told me that he could take any cheap camera and still take a better picture than any of his students regardless of whether or not they had the best camera on the market. I feel the same way about software development. There are many programmers out there (many of which use this site) who can probably create outstanding software (front-end, back-end, whatever) using any number of programming languages including PHP because of their ability to follow the best principles for building software. Programmers tend to use the tool they work best (and most efficiently) with.

一位老摄影老师曾经告诉我,他可以拿任何便宜的相机,而且不管市场上有没有最好的相机,他都能比他的学生拍出更好的照片。我对软件开发也有同感。有许多程序员(其中许多人使用这个站点)可能会使用包括PHP在内的任意数量的编程语言创建出色的软件(前端、后端等等),因为他们能够遵循构建软件的最佳原则。程序员倾向于使用他们最有效(且最有效)的工具。

#8


0  

PHP is the easiest to deploy because it's almost always already setup on a web server. Other languages never seem to be setup to actually deploy websites on shared hosting or anywhere else... you have to do it yourself or pay someone to specifically allow the language to serve web content. As far as I have experienced this is the sole reason other languages aren't being adopted at a quick rate. Python has a great syntax and it's much more intuitive in a lot of ways compared to PHP but you don't see it ready to deploy a site on hosting plans very often.

PHP是最容易部署的,因为它几乎总是已经安装在web服务器上。其他语言似乎从来没有设置实际部署网站在共享主机或其他任何地方……你必须自己做,或者付钱给别人,让语言专门为网络内容服务。据我所知,这是其他语言不能迅速被采用的唯一原因。Python有很好的语法,与PHP相比,它在很多方面都更直观,但您并不经常看到它准备在托管计划上部署站点。

#9


0  

if I want my application to install in a lot of server, I use PHP. today, which web host company don't include PHP as they hosting feature?

如果我想让我的应用程序安装在很多服务器上,我就使用PHP。今天,哪个web主机公司没有包含PHP作为托管特性?

if I want to quick development application, I use ColdFusion, since this language (to me) is more easy to use and provide most commonly used feature for web application

如果我想快速开发应用程序,我使用ColdFusion,因为这种语言(对我来说)更容易使用,并为web应用程序提供最常用的特性

once again, there are no best language, it's depend on your need

再说一遍,没有最好的语言,这取决于你的需要

#10


0  

Q1. Does this mean PHP is used for quick and easy website where other languages are used in more complex websites?

Q1。这是否意味着PHP被用于快速简单的网站,而其他语言则被用于更复杂的网站?

A1: Yes it means that PHP is used in quick and easy websites and other languages are used in more complex websites.

A1:是的,它的意思是PHP在快速简单的网站中使用,而其他语言在更复杂的网站中使用。

Q2. Why PHP is ranked at the bottom? Or why big company tend to use other language than PHP?

Q2。为什么PHP排在最后?或者为什么大公司倾向于使用PHP以外的语言?

A2: Because the guys which prefer other languages to PHP do not think the other way. They do not estimate that

答:因为那些喜欢其他语言而不喜欢PHP的人不会这么想。他们没有估计

  1. PHP Hosting and servers are much cheaper to use than other server so that they can use more servers.
  2. 使用PHP主机和服务器比使用其他服务器要便宜得多,这样它们就可以使用更多的服务器。
  3. PHP Development is fast so that they can finish faster.
  4. PHP开发速度很快,因此可以更快地完成。
  5. Good PHP Developer are easy to find so that they have plenty of choice.
  6. 好的PHP开发人员很容易找到,因此他们有很多选择。
  7. PHP have many open sources projects so that they don't have to reinvent the wheel.
  8. PHP有许多开放源码项目,所以它们不必重新发明*。

#11


0  

I've done lots of Web sites/apps, both simple & complex & don't know the first thing about PHP (other than how to spell it). Can't say I've missed it, but that's just me.

我做过很多网站/应用,简单又复杂,除了如何拼写之外,我对PHP一无所知。我不能说我错过了,但那只是我。

#12


0  

PHP is excellent for front-end layer, while other languages like Java could be used for the back-end layer of a complex and multi-level application. To do so you can use either SOAP or even better RESTful web services.

PHP非常适合前端层,而Java等其他语言可以用于复杂的多层应用程序的后端层。为此,您可以使用SOAP或更好的RESTful web服务。