Java v / s PHP,这项技术如何用于Web应用程序开发? [英] Java v/s PHP, how do this technology stack up for Web Application Development?

查看:106
本文介绍了Java v / s PHP,这项技术如何用于Web应用程序开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络编程的新手,我听说有很多像Java,.Net和PHP这样的Web应用程序开发。

I am new to Web Programming and I hear that there are many biggies like Java, .Net and PHP for Web Application Development.

如果能够比较一下这种技术如何与一种技术优于另一种技术相比,我当然能够获得一些见解。

I would certainly appreciate if I can get some insights on how this technology stack up in comparison and in what scenarios one would prefer one technology over the other.

提前感谢所有指导。

推荐答案

PHP资源要求低,托管非常便宜,入门门槛低,是最受欢迎的Web框架栏。

PHP has low resource requirements, really cheap hosting, really low barrier to entry and is the most popular Web framework bar none.

话虽如此,PHP是一种纯粹的解释型语言(尽管操作码缓存)因此往往比Java慢(通常不重要),语法不一致,很容易犯很大的错误(比如没有清理数据库查询输入;但你可以用任何语言进行清理)。

That being said, PHP is a purely interpreted language (opcode caches notwithstanding) so tends to be slower than Java (not that that usually matters), the syntax is inconsistent and it's easy to make huge errors (like not sanitizing database query inputs; but you can do that in any language).

两者都不比另一个好。对于随意的Web开发,我绝大多数时候都非常喜欢PHP。对于更多企业类型的软件,Java可能更好。

Neither is better than the other. For casual Web development I definitely prefer PHP most of the time. Java is probably better for more "enterprise" type software.

这篇关于Java v / s PHP,这项技术如何用于Web应用程序开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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