PHP的优点和缺点? [英] Advantages and disadvantages of PHP?

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

问题描述

我是一名学习PHP的程序员。与其他服务器端编程相比,我正在寻找一些关于其b / b
强点和弱点的输入,例如,Java Server Pages。


请注意,这不是一个宗教问题。编程语言

对我来说是工具。我只想了解不同类型的解决方案可能是最优的。/ div =h2_lin>解决方案

" Jonathan Sachs" < js ****** @ sbcglobal.net写信息

新闻:dr ************************ ******** @ 4ax.com ...


我是程序员学习PHP的。与其他服务器端编程相比,我正在寻找一些关于其b / b
强点和弱点的输入,例如,Java Server Pages。


请注意,这不是一个宗教问题。编程语言

对我来说是工具。我只想了解不同类型的解决方案可能是最优的。



选择:PHP,ASP,ASP.NET,Perl,Python,Java等等。


您的Web服务器支持什么?您知道哪些语言?


答案通常归结为上述。


每位网站管理员应该知道的内容:PHP,Perl,ASP .net
http://www.seroundtable.com/archives/ 006709.html


McKirahan写道:


" Jonathan Sachs" < js ****** @ sbcglobal.net写信息

新闻:dr ************************ ******** @ 4ax.com ...


>我是程序员学习PHP。与其他服务器端编程环境(例如Java Server Pages)相比,我正在寻找一些关于其优点和缺点的输入。

请注意,这是不是宗教问题。编程语言对我来说是工具。我只想了解不同类型的解决方案可能是最佳的信息。



选择:PHP,ASP,ASP.NET,Perl,Python,Java,等等。


您的Web服务器支持什么?您知道哪些语言?


答案通常归结为上述。


每位网站管理员应该知道的内容:PHP,Perl,ASP .net
http://www.seroundtable.com/archives/ 006709.html



像往常一样,什么适合你的风格和应用程序比

更好是最好的东西..

来自CI发现PHP主要是好的,但因为弱b / b
打字和语法不一致而烦恼...这本身并不是一个错误,只是

你必须同样小心,如果你在不同类型上进行操作。在PHP中,它们被无形转换为

,有时会产生意想不到的结果。


它足以满足我的需求......


On Sun,2008年2月17日07:38:50 -0600,Jonathan Sachs

< js ****** @ sbcglobal.netwrote:


>我是程序员学习PHP。与其他服务器端编程环境(例如Java Server Pages)相比,我正在寻找关于其强弱点的一些信息。



首先,你是否可以完全自由地选择一种语言,或者某些地方是否存在一些可以缩小范围的限制?例如,如果您将在共享服务器上托管您的应用程序,几乎每个托管商都会提供PHP,而其他语言则更为罕见。


如果你要使用自己的服务器,你必须检查应用程序是否有任何依赖性,在这种情况下你会有检查是否可以从语言中调用那些

外部因素。


最后,你已经知道哪种语言?在生产力方面,b
Python可能是最好的,因为它非常丰富,同时提供了非常简单的语法,而PHP更常见,因为它's
现在由托管商提供了大约十年。


与桌面相比,网络的限制非常严格
无论如何,
应用程序,因为HTTP和HTML的性质,所以最终,

并没有太大的区别你选择什么语言

服务器。您甚至可以用JavaScript编写大部分内容并通过AJAX从客户端调用

例程:-)


I''m a programmer learning PHP. I''m looking for some input on its
strong and weak points compared to other server-side programming
environments, e.g., Java Server Pages.

Please note, this is not a religious question. Programming languages
are tools to me. I just want information about where different types
of solutions are likely to be optimal.

解决方案

"Jonathan Sachs" <js******@sbcglobal.netwrote in message
news:dr********************************@4ax.com...

I''m a programmer learning PHP. I''m looking for some input on its
strong and weak points compared to other server-side programming
environments, e.g., Java Server Pages.

Please note, this is not a religious question. Programming languages
are tools to me. I just want information about where different types
of solutions are likely to be optimal.

Take your pick: PHP, ASP, ASP.NET, Perl, Python, Java, et.al.

What does your Web server support? What languages do you know?

The answer usually boils down to the above.

What Every Webmaster Should Know: PHP, Perl, ASP.net
http://www.seroundtable.com/archives/006709.html


McKirahan wrote:

"Jonathan Sachs" <js******@sbcglobal.netwrote in message
news:dr********************************@4ax.com...

>I''m a programmer learning PHP. I''m looking for some input on its
strong and weak points compared to other server-side programming
environments, e.g., Java Server Pages.

Please note, this is not a religious question. Programming languages
are tools to me. I just want information about where different types
of solutions are likely to be optimal.


Take your pick: PHP, ASP, ASP.NET, Perl, Python, Java, et.al.

What does your Web server support? What languages do you know?

The answer usually boils down to the above.

What Every Webmaster Should Know: PHP, Perl, ASP.net
http://www.seroundtable.com/archives/006709.html

And as usual, what fits your style and the application is better than
what is the Best Thing..
Coming from C I found PHP mainly good, but irritating because of weak
typing and inconsistency of syntax..this isn''t a fault per se, just
something you have to be equally careful of as you do in wobbly if you
do operations on different types. In PHP they are invisibly converted
with sometimes unexpected results.

Its more than good enough for what I want tho..


On Sun, 17 Feb 2008 07:38:50 -0600, Jonathan Sachs
<js******@sbcglobal.netwrote:

>I''m a programmer learning PHP. I''m looking for some input on its
strong and weak points compared to other server-side programming
environments, e.g., Java Server Pages.

First, are you totally free to choose a language, or are there some
constraint somewhere that would narrow things down? For instance, if
you''ll host your app on a shared server, just about every hoster
offers PHP, while other languages are much more rare.

If you''ll be using your own server, you''ll have to check if the app
has any dependency, in which case you''ll have to check if those
externalities can be called from the language.

Finally, what language do you already know? In terms of productivity,
Python is probably the best, because it''s very rich while offering a
very simple syntax, while PHP is much more common simply because it''s
been offered by hosters for about ten years now.

The web is pretty restrictive in what you can do compared to desktop
apps anyway, because of the nature of HTTP and HTML, so ultimately,it
doesn''t make much of a difference what language you choose on the
server. You can probably even write most of it in JavaScript and call
routines from the client through AJAX :-)


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

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