为什么PHP在Web开发中更受欢迎 [英] Why PHP is so much more popular for web-development

查看:54
本文介绍了为什么PHP在Web开发中更受欢迎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一旦你开始沿着黑暗的道路前进,它将永远支配你的

desiny。消费你,它会。

- 尤达


我是网络开发的新手,我正在尝试不同的

技术。有些人想知道为什么PHP如此受欢迎,因为

语言在很多方面存在缺陷。对我而言,这是显而易见的:它是因为

开始使用PHP要容易得多,而且一旦有人获得

就开始了语言,那个人可能会继续使用

那种语言。


在你开始使用Python网络开发之前,你有

了解整个alphabit汤:CGI,FASTCGI,MOD_PYTHON,

FLUP,WSGI,PASTE等。对我来说,配置fastcgi是最好的$ b $让django工作的困难部分。 PHP开发人员不必为这样的事情付出麻烦。使用PHP,你只需在你的html文件的中间部分输入一些代码。


此外,PHP和PHP框架在任何地方都受支持。如果你要使用一个PHP MVC框架,比如codeignitor,你会有一个很难的时间找到一个不支持它的主机 - 所有你需要的是php4

和mysql。每年10美元的美元托管应该可以和

codeignitor一起使用。使用codeignitor,只需将文件复制到任何主机,

就可以了,你完成了。


相比之下,最受欢迎Python框架具有天价系统

的要求。对于像Django,TurboGears或CherryPy这样的流行Python框架,请查看需求和/或推荐



Apache 2.0,mod_python(最新版本),fastcgi(at至少),命令

线路访问,PostgreSQL。许多低成本的托管服务商根本不支持.b / b

不要误会我的意思:我不是这么说的对于

web开发,PHP优于Python。但是,我有时候认为Python可以从PHP学到一些东西。


当然所有的JMHO都是。

"Once you start down the Dark path, forever will it dominate your
desiny. Consume you, it will."
- Yoda

I''m fairly new to web-development, and I''m trying out different
technologies. Some people wonder why PHP is so popular, when the
language is flawed in so many ways. To me, it''s obvious: it''s because
it''s much easier to get started with PHP, and once somebody gets
started with a particular language, that person is likely to stay with
that language.

Before you can even get started with Python web-development, you have
to understand this entire alphabit soup of: CGI, FASTCGI, MOD_PYTHON,
FLUP, WSGI, PASTE, etc. For me, configuring fastcgi has been the most
difficult part of getting django to work. PHP developers don''t have to
bother with anything like that. With PHP, you just throw some code in
the middle of your html file.

Also, PHP, and PHP frameworks, are supported everywhere. If you going
to use a PHP MVC framework, like codeignitor, you would have a hard
time finding a hoster that didn''t support it - all you need is php4
and mysql. Dollar-hosting, for $10 a year, should work just fine with
codeignitor. With codeignitor, just copy your files to whatever host,
and that''s it, you''re done.

By contrast, the most popular Python frameworks have sky-high system
requirements. Take a look at the requirements and/or recomendations
for popular Python frameworks like Django, TurboGears, or CherryPy:
Apache 2.0, mod_python (latest version), fastcgi (at least), command
line access, PostgreSQL. And a lot of low-cost hosters don''t support
Python at all.

Don''t get me wrong: I am not saying that PHP is better than Python for
web-development. But, I sometimes think that Python could learn a few
things from PHP.

All JMHO, of course.

推荐答案

一年10,应该可以正常使用

codeignitor。使用codeignitor,只需将文件复制到任何主机,

就可以了,你完成了。


相比之下,最受欢迎Python框架具有天价系统

的要求。对于像Django,TurboGears或CherryPy这样的流行Python框架,请查看需求和/或推荐



Apache 2.0,mod_python(最新版本),fastcgi(at至少),命令

线路访问,PostgreSQL。许多低成本的托管服务商根本不支持.b / b

不要误会我的意思:我不是这么说的对于

web开发,PHP优于Python。但是,我有时候认为Python可以从PHP学到一些东西。


当然所有的JMHO都是。

10 a year, should work just fine with
codeignitor. With codeignitor, just copy your files to whatever host,
and that''s it, you''re done.

By contrast, the most popular Python frameworks have sky-high system
requirements. Take a look at the requirements and/or recomendations
for popular Python frameworks like Django, TurboGears, or CherryPy:
Apache 2.0, mod_python (latest version), fastcgi (at least), command
line access, PostgreSQL. And a lot of low-cost hosters don''t support
Python at all.

Don''t get me wrong: I am not saying that PHP is better than Python for
web-development. But, I sometimes think that Python could learn a few
things from PHP.

All JMHO, of course.


walterbyrd写道:
walterbyrd wrote:

"一旦你开始沿着黑暗的道路前进,它将永远支配你的

desiny。消费你,它会。

- 尤达


我是网络开发的新手,我正在尝试不同的

技术。有些人想知道为什么PHP如此受欢迎,因为

语言在很多方面存在缺陷。对我而言,这是显而易见的:它是因为

开始使用PHP要容易得多,而且一旦有人获得

就开始了语言,那个人可能会继续使用

那种语言。


在你开始使用Python网络开发之前,你有

了解整个alphabit汤:CGI,FASTCGI,MOD_PYTHON,

FLUP,WSGI,PASTE等。对我来说,配置fastcgi是最好的$ b $让django工作的困难部分。 PHP开发人员不必为这样的事情付出麻烦。使用PHP,你只需在你的html文件的中间部分输入一些代码。


此外,PHP和PHP框架在任何地方都受支持。如果你要使用一个PHP MVC框架,比如codeignitor,你会有一个很难的时间找到一个不支持它的主机 - 所有你需要的是php4

和mysql。美元托管,对于
"Once you start down the Dark path, forever will it dominate your
desiny. Consume you, it will."
- Yoda

I''m fairly new to web-development, and I''m trying out different
technologies. Some people wonder why PHP is so popular, when the
language is flawed in so many ways. To me, it''s obvious: it''s because
it''s much easier to get started with PHP, and once somebody gets
started with a particular language, that person is likely to stay with
that language.

Before you can even get started with Python web-development, you have
to understand this entire alphabit soup of: CGI, FASTCGI, MOD_PYTHON,
FLUP, WSGI, PASTE, etc. For me, configuring fastcgi has been the most
difficult part of getting django to work. PHP developers don''t have to
bother with anything like that. With PHP, you just throw some code in
the middle of your html file.

Also, PHP, and PHP frameworks, are supported everywhere. If you going
to use a PHP MVC framework, like codeignitor, you would have a hard
time finding a hoster that didn''t support it - all you need is php4
and mysql. Dollar-hosting, for


一年,应该可以正常使用

codeignitor。使用codeignitor,只需将文件复制到任何主机,

就可以了,你完成了。


相比之下,最受欢迎Python框架具有天价系统

的要求。对于像Django,TurboGears或CherryPy这样的流行Python框架,请查看需求和/或推荐



Apache 2.0,mod_python(最新版本),fastcgi(at至少),命令

线路访问,PostgreSQL。许多低成本的托管服务商根本不支持.b / b

不要误会我的意思:我不是这么说的对于

web开发,PHP优于Python。但是,我有时认为Python可以从PHP学到一些东西。


当然所有的JMHO。
10 a year, should work just fine with
codeignitor. With codeignitor, just copy your files to whatever host,
and that''s it, you''re done.

By contrast, the most popular Python frameworks have sky-high system
requirements. Take a look at the requirements and/or recomendations
for popular Python frameworks like Django, TurboGears, or CherryPy:
Apache 2.0, mod_python (latest version), fastcgi (at least), command
line access, PostgreSQL. And a lot of low-cost hosters don''t support
Python at all.

Don''t get me wrong: I am not saying that PHP is better than Python for
web-development. But, I sometimes think that Python could learn a few
things from PHP.

All JMHO, of course.



的确如此。 PHP如此受众多人欢迎的原因是,核心语言符合网站大多数更简单的要求。


大多数人聚在一起一个网站对PHPNuke的内容非常满意




当有人开始推动PHP的限制时,他们要么继续

推送,直到他们到达他们想要的位置(沿途生成丑陋或
维护不良的代码)或者他们选择更合适的
工具。


后一种行为是程序员的典型行为。前者是典型的

典型用户。有很多人在我的任何代码的码数范围内都不会生成网站。但这是对PHP

的某种贡献,它设法满足了这么多。这并不意味着无意中将PHP功能嫁接到Python中会改善语言。


Python方法是一种手术刀,可以轻松削减你的手指关闭。

PHP方法是一个铲子,可用于许多日常任务。


问候

Steve

-

Steve Holden +1 571 484 6266 +1 800 494 3119

Holden Web LLC / Ltd http://www.holdenweb.com

Skype:holdenweb http://del.icio.us/steve.holden

---- ----------- Asciimercial ------------------

上网:博客,镜头和标记互联网

许多服务目前提供免费注册

-----------感谢您阅读-------------

Indeed. The reason that PHP is so popular with so many people is that
the core language meets most of the simpler requirements for web sites.

Most people putting together a site are perfectly happy with something
along the lines of PHPNuke.

When someone starts to push the limits of PHP they either continue to
push until they get where they want to be (producing an ugly or
ill-maintained bunch of code along the way) or they choose a more
appropriate tool.

The latter behavior is typical of programmers. The former is typical of
typical users. There are many people producing web sites who I wouldn''t
let within yards of any of my code. but it''s some kind of tribute to PHP
that it manages to satisfy so many of them. This doesn''t mean that
grafting PHP features into Python mindlessly will improve the language.

The Python approach is a scalpel, which can easily cut your fingers off.
The PHP approach is a shovel, which will do for many everyday tasks.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------


这篇关于为什么PHP在Web开发中更受欢迎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆