PHP优于ASP的10个理由 [英] 10 Reasons Why PHP is Better than ASP

查看:36
本文介绍了PHP优于ASP的10个理由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1。 PHP.NET是MAN已知的最好的API资源

解决方案

3.语法更好,更接近C,C ++和Java。与VB不同的是

任何东西都可以。

4.要运行ASP,你需要在Windows上使用IIS,这对于PHP来说不是免费的

但是你需要Linux和Apache免费!!

5.内置支持ftp,电子邮件,图形包GD2和

也是MySQL(也是免费的)。

6. PHP将在Unix,Linux,Solaris和Windows上运行。 ASP主要是

只有Windows关联但你可以在linux上使用它并安装额外的

模块。

7. PHP代码更快, ASP是基于COM的

架构开发的,这是服务器的开销。

8. mod_rewrite,需要我说更多。

9.高级Perl兼容的正则表达式函数和加载

内置支持正则表达式。

10.更好地控制错误处理,以及更详细的错误

消息。

http://www.hwhappy.co.uk/2006/11/30/...tter-than-asp/

1. PHP.NET the greatest API resource known to MAN
2. If you have a problem, someone will have already implemented a
solution in PHP for you
3. Syntax is better, closer to C, C++, and Java. Unlike VB where
anything goes.
4. To run ASP you need IIS on windows, which is not free, for PHP
however you need Linux and Apache which are FREE!!
5. Great built in support for ftp, email, graphics package GD2 and
also MySQL (also FREE).
6. PHP will run on Unix, Linux, Solaris and Windows. ASP is mainly
only Windows associated but you can use it on linux with additional
modules installed.
7. PHP code is much faster, ASP is developed on the COM based
architecture, this is an overhead for the server.
8. mod_rewrite, need I say more.
9. Advanced Perl-compatible regular expression functions and loads
of built in support for regular expressions on the whole.
10. Greater control over error handling, and more detailed error
messages.

http://www.hwhappy.co.uk/2006/11/30/...tter-than-asp/

推荐答案

Ali Bobo写道:
Ali Bobo wrote:

2.如果您遇到问题,有人已经实施一个用于PHP的
解决方案
2. If you have a problem, someone will have already implemented a
solution in PHP for you



尽管PHP是其中之一我最喜欢的编程语言,我认为

其中一些原因并不是那么好,所以觉得我应该纠正他们中的一些,或者至少是进一步详细说明。


关于第2点,是的,通常情况是这样,但有一半时间他们的

解决方案是垃圾,需要大量重写才能消除明显的安全性

漏洞。有这么多免费PHP脚本的原因是因为

那里有数以百万计的PHP脚本。对你们中的一些人来说可能会感到震惊,但并非所有人都是天才。

Although PHP is one of my favourite programming languages, I do think that
some of these reasons are not so good, so feel I should "correct" some of
them, or at least further elaborate.

Regarding point #2, yes, that''s often the case, but half the time their
solution is junk and needs extensive rewrites to remove obvious security
flaws. The reason there''s so many free PHP scripts out there is because
there''s millions of PHP scripters out there. It may come as a shock to
some of you, but not all of them are geniuses.


3.语法更好,更接近到C,C ++和Java。与VB不同,

任何东西都可以。
3. Syntax is better, closer to C, C++, and Java. Unlike VB where
anything goes.



PHP的语法更好,因为它更接近C?如果有的话,C的语法的相似性应该被归类为劣势。 C是一个高于

汇编的步骤,但这可以说是对它有利。


类C语言,C# ,Java和Javascript在

语法中比PHP更优雅。但是如果你想看一个语言真的很好用的语言,请查看AppleScript。


除此之外,ASP.NET(最新的ASP版本) )是一个容器

格式,支持在其中使用各种不同的语言。

当然,VB很常见,但Javascript也是如此。 ASP中的Perl并非闻所未闻

。甚至可以在ASP中编写PHP脚本。

PHP''s syntax is better because it''s closer to C? If anything, similarity
to C''s syntax should be classed as a disadvantage. C is a step up above
assembly, but that''s all that can be said in its favour.

Of the C-like languages, C#, Java and Javascript are far more elegant in
syntax than PHP. But if you want to see a language with a truly nice
syntax, check out AppleScript.

Besides which, ASP.NET (the latest incarnation of ASP) is a container
format which supports the use of various different languages within it.
Sure, VB is common, but so is Javascript. Perl within ASP is not unheard
of. It''s even possible to script PHP within ASP.


4.要运行ASP,你需要在Windows上使用IIS,这对于PHP来说是免费的

然而你需要免费的Linux和Apache!
4. To run ASP you need IIS on windows, which is not free, for PHP
however you need Linux and Apache which are FREE!!



您不需要Linux或Apache for PHP。还有其他各种运行它的操作系统和Web服务器。我碰巧在Apache for Max OS X上进行了大量的测试。我甚至可以在Windows上的IIS上运行。


当然,有各种各样的ASP的替代实现,一些

是免费的。然而,就像使用C#一样,很多人依赖于特定的怪癖和微软实现的扩展,所以

结果将无法在替代实现上运行。

You do not need either Linux or Apache for PHP. There are various other
operating systems and web servers that will run it. I happen to do a lot
of my testing on Apache for Max OS X. PHP will even run on IIS on Windows.

Whatsmore, there are various alternative implementations of ASP, some of
which are free. However, much like with C#, a lot of people rely on
specific quirks and extensions of Microsoft''s implementation, so the
result will not run on the alternative implementations.


5.内置支持ftp,电子邮件,图形包GD2和

也是MySQL(也是免费的)。
5. Great built in support for ftp, email, graphics package GD2 and
also MySQL (also FREE).



MySQL虽然是一个非常糟糕的数据库。

MySQL is a pretty crummy database though.


6. PHP将在Unix,Linux上运行, Solaris和Windows。 ASP主要是

只有Windows关联,但你可以在linux上使用它,并安装额外的

模块。
6. PHP will run on Unix, Linux, Solaris and Windows. ASP is mainly
only Windows associated but you can use it on linux with additional
modules installed.



现在自相矛盾#

Contradicting point #4 yourself now.


7. PHP代码更快,ASP开发在基于COM的
架构上,这是服务器的开销。
7. PHP code is much faster, ASP is developed on the COM based
architecture, this is an overhead for the server.



基于COM的ASP已经很老了。 ASP.NET页面可以预编译,允许非常快速执行。


如果你使用eAccelerator或者
类似,但默认情况下这个功能不会包含在PHP中

直到6.0发布。

COM-based ASP is pretty old. ASP.NET pages can be pre-compiled, allowing
very fast execution.

PHP scripts can be cached in a compiled form if you use eAccelerator or
similar, but this functionality will not be included in PHP by default
until 6.0 is released.


8 .mod_rewrite,需要我多说。
8. mod_rewrite, need I say more.



mod_rewrite是用C语言编写的,而不是PHP。

mod_rewrite is written in C, not PHP.


9.高级Perl兼容的正则表达式函数并且加载

内置支持整体的正则表达式。
9. Advanced Perl-compatible regular expression functions and loads
of built in support for regular expressions on the whole.



VBScript从版本5开始(现在已经很老了)支持常规的

表达式,但与Perl相比它们相当有限'正则表达式。

但是,正如我之前所说,ASP并不仅限于VBScript。 Perl将在ASP中愉快地运行
,Perl的正则表达式肯定与Perl兼容!


-

Toby一个Inkster BSc(荣誉)ARCS

[极客HTML / SQL / Perl / PHP / Python / Apache / Linux]

[操作系统:Linux 2.6.17.14-mm- desktop-9mdvsmp,上传17天,4:39。]


Gnocchi all''Atrictriciana al Forno
http://tobyinkster.co.uk/blog/2008/0...llamatriciana/


Toby A Inkster< us ********** @ tobyinkster.co.ukwrote:

Toby A Inkster <us**********@tobyinkster.co.ukwrote:


> 3.语法更好,更接近C,C ++和Java。什么都不是VB。
> 3. Syntax is better, closer to C, C++, and Java. Unlike VB where
anything goes.


PHP的语法更好,因为它更接近C?如果有的话,与C'语法的相似性应被归类为劣势。 C是装配上方的一个步骤,但这一切都可以说是有利于它。


PHP''s syntax is better because it''s closer to C? If anything, similarity
to C''s syntax should be classed as a disadvantage. C is a step up above
assembly, but that''s all that can be said in its favour.



我很喜欢C,C ++,java,e到VB或其任何变体。

当然你可以使用Javascript for ASP页面,这将删除这个

objection.e来编写ASP中的PHP脚本。

I VASTLY prefer C, C++, java, e to VB or any of its variants. Of
course your can use Javascript for ASP pages, which removes this
objection.e to script PHP within ASP.


> 4.要运行ASP,你需要在Windows上使用IIS,这对于PHP来说是免费的,但是你需要免费的Linux和Apache!
> 4. To run ASP you need IIS on windows, which is not free, for PHP
however you need Linux and Apache which are FREE!!


您不需要Linux或Apache for PHP。有各种其他操作系统和Web服务器可以运行它。


You do not need either Linux or Apache for PHP. There are various other
operating systems and web servers that will run it.



确实,这就是OP真正说的话。 ASP是专有的,它只能在Windows / IIS上运行.b $ b。 PHP随处运行。


-

Tim Slattery

MS MVP(壳牌/用户)
Sl ******** @ bls.gov
http://members.cox.net/slatteryt


re:

!ASP是专有的,它只在Windows / IIS上运行。 PHP运行在任何地方。


不是这样。


Grasshopper使您能够生成.NET Web和服务器应用程序

运行在Linux&其他支持Java的平台使用ASP.NET 2.0控件,
基于角色的安全性和C#泛型。

http://dev.mainsoft.com/


Juan T. Llibre,asp .net MVP

asp.net faq: http:// asp .net.do / faq /

foros de asp.net,en espa?ol: http://asp.net.do/foros/

================= =====================

Tim Slattery < Sl ******** @ bls.govwrote in message news:id ****************************** ** @ 4ax.com ...
re:
!ASP is proprietary, it runs only on Windows/IIS. PHP runs anywhere.

Not so.

Grasshopper enables you to produce .NET Web and server applications that
run on Linux & other Java-enabled platforms using ASP.NET 2.0 controls,
role-based security, and C# generics.

http://dev.mainsoft.com/


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
======================================
"Tim Slattery" <Sl********@bls.govwrote in message news:id********************************@4ax.com...

Toby A Inkster< us ********** @ tobyinkster.co.ukwrote:

Toby A Inkster <us**********@tobyinkster.co.ukwrote:


>> 3.语法更好,更接近C,C ++和Java。什么都不是VB。
>> 3. Syntax is better, closer to C, C++, and Java. Unlike VB where
anything goes.


PHP的语法更好,因为它更接近C?如果有的话,与C'语法的相似性应被归类为劣势。 C是装配上方的一个步骤,但这一切都可以说是有利于它。


PHP''s syntax is better because it''s closer to C? If anything, similarity
to C''s syntax should be classed as a disadvantage. C is a step up above
assembly, but that''s all that can be said in its favour.



我很喜欢C,C ++,java,e到VB或其任何变体。

当然你可以使用Javascript for ASP页面,这将删除这个

objection.e来编写ASP中的PHP脚本。


I VASTLY prefer C, C++, java, e to VB or any of its variants. Of
course your can use Javascript for ASP pages, which removes this
objection.e to script PHP within ASP.


>> 4.要运行ASP,你需要在Windows上使用IIS,这对于PHP来说是免费的,但是你需要免费的Linux和Apache!
>> 4. To run ASP you need IIS on windows, which is not free, for PHP
however you need Linux and Apache which are FREE!!


您不需要Linux或Apache for PHP。有各种其他操作系统和Web服务器可以运行它。


You do not need either Linux or Apache for PHP. There are various other
operating systems and web servers that will run it.



确实,这就是OP真正要说的。 ASP是专有的,它只能在Windows / IIS上运行.b $ b。 PHP随处运行。


-

Tim Slattery

MS MVP(壳牌/用户)
Sl ******** @ bls.gov
http://members.cox.net/slatteryt






这篇关于PHP优于ASP的10个理由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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