哪个更适合动态网站 - PHP或java? [英] Which is better for a dynamic website - PHP or java?

查看:90
本文介绍了哪个更适合动态网站 - PHP或java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道建立一个动态网站更容易,更好,更无压力。



我尝试了什么:



我尝试使用PHP编码,看似简单易懂。但是,为了更好的服务器端脚本,我想知道哪个更好。

解决方案

你可以用任何语言创建一个动态网站,主要问题你应该问自己是什么限制你:

1)你正在部署什么平台?

2)你更熟悉哪种语言? />
3)您可能会对您的决策施加哪些限制?


服务器端脚本语言足以支持动态网站; PHP或Java部分稍后出现。您只需要处理如何向访问者提供网页。



PHP在初学者,培训机构等中使用最广泛。用于Web的Java EE是一个非常复杂的基础架构,由于其学习困难,初学者通常不会用它。它被巨人使用,例如Red Hat等。然后我选择了,ASP.NET(一个完全有偏见的句子)是一个非常简单,功能强大且敏捷的开发框架,并以任何可竞争的方式击败它们。



因此,如果您是初学者使用ASP.NET Core,它具有PHP提供的现代脚本语言+敏捷性的所有功能+安全性和可扩展性Java EE提供。此外,您可以托管它而无需购买额外的许可证 - 它是开源的,免费的;就像在一切。 ; - )

Hi,

I wanted to know which lang with be easier, better and stressfree for building a dynamic website.

What I have tried:

I tried using coding PHP, seemed simple and understandable. However, for a better server side scripting, I would like to know which would be better.

解决方案

You can create a "dynamic website" in any language, the main question you should ask yourself is what are the limitation on you :
1) What platform you are deploying on?
2) What language you are more familiar with?
3) What limitations are imposed on you that could impact your decisions?


A server-side scripting language is enough for dynamic website; PHP or Java part comes later. You just need to handle how a web page is served to visitors.

PHP is most widely used in beginners, training institutes etc. Java EE for web is a much complex infrastructure, and due to its tough learning curves beginners often don't use it. It is used by giants, such as Red Hat etc. Then there comes my choice, ASP.NET (an entirely biased sentence) is a really simple, powerful and agile framework for development and beats them all, in any way they can compete.

So, if you are a beginner go with ASP.NET Core, it has all the features of a modern scripting language + agility that PHP offers + security and extensibility that Java EE offers. Besides, you can host it without having to purchase additional licenses — it is open source and free; as in everything. ;-)


这篇关于哪个更适合动态网站 - PHP或java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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