PHP and Java Advantage Comparison

Source: Internet
Author: User
Tags php language

PHP is a very exclusive, server-side scripting language for creating dynamic Web pages. As a language specifically designed for the web, PHP brings many of the features that business organizations crave.   Short learning cycle, relatively simple and fast development time • Very high performance      This is very important for a company that lacks skilled programmers and has a very tight time. The cross-platform is good, PHP can run on all major operating platforms (Unix,windows, even mainframes) and is inherently supported by a variety of popular databases. This makes it an ideal choice for Web development: online stores that have used PHP technology say they only hire amateur programmers and can develop reusable code within days. Programmers who are familiar with languages such as c,c++ or Java always find themselves able to program PHP within a few hours. , I imagine, to go to php very simple      "PHP is built on the real needs of web developers .... Unlike other cumbersome, high-load methods, PHP is very lightweight and is tailor-made for web development. It can be faster and easier to solve complex problems than other similar technologies. "     Java, as a new programming language, was originally used to run client applications embedded in the browser. In the last few years, the problems exposed by "applets" have forced sun and other Java developers to find a new way out of the language. The most prominent of these is server-side programming, which allows the Web site to connect to the database and produce other server-side applications, namely "Servlets". Sun finally introduced the Java Server Pages (JSP) as a means of writing servlets. Like PHP, JSPs are highly portable across different platforms (although PHP supports any 32-bit and more than 32-bit platforms, and JSP can only run on the platform where the Java Virtual machine is installed). Then, a novice without a programming background will find it extremely difficult to use servlets programming because of the complexity of the language and the complex design of the JSP system.      JSP Performance There are many things to be improved: ZDNet's online publication eweek A recent survey found that PHP runs almost 3.7 times times faster than a JSP. It can be said that JSP is a very poor solution in a web environment because it can only handle very few transactions per second, and the response speed is quite slow.  zdnet's eWEEK magazine also mentions:    "JSP is a relatively new technology, from development tools,In terms of resources and talents, there is no complete market maturity. ”...... Since the JSP is Java-based and Java is a strongly typed language, we have to declare the type of the variable and manually convert the type where needed. This makes JSP a scripting language most difficult for amateur programmers to learn.  php working with Java      JSP is just a language to access Java objects, it's important to recognize that. PHP can also integrate Java, which means that PHP, like a JSP, can be used as a scripting language to invoke Java logic. However, unlike JSPs, PHP can also invoke other component models, such as Microsoft COM, and it is extremely easy to add support for the new object model. As you can see, PHP's ability to expand is infinite. JSP, on the other hand, relies entirely on Java.      IBM programmer Sam Ruby uses PHP and Java together. With PHP's good support for Java, Java objects are created and used transparently, just like regular PHP objects. The      Autionwatch website allows business groups of all sizes to benefit from their dynamic bidding environment. It has more than 2.6 million visitors per month, has Sandovan registered users and 1.2 million auctions per month. They tried to use Java, but they chose PHP because it was easier to use and faster to develop.      Programming consultant Reuven Lerner has made comparisons between various languages. His comments on PHP: "This is the easiest language to learn." Art and web designers may say that they are not programmers, but in fact, they are increasingly using javascript,vbscript and other simple programming languages in large projects. PHP is more formal and explicit than Perl, and PHP is easier for a novice to master than Java. Indeed, PHP is a bit like JavaScript (if there is a server-side version). Anyone, with or without programming experience, can learn and use PHP in a very short time. Maybe VBScript can do that, but Perl and Java are definitely not ... PHP is definitely an extraordinary, powerful system. No wonder you can become a popular language for creating Web sites ..... I think PHP will be a strong competitor for Java and JSP, and I will strongly recommend PHP in some customers and in-house projects. "Xiamen PHP Training  php: has been moving forward  jsp has Sun as its backing, so constantly getMedia attention. But interestingly, despite the lack of any propaganda offensive, PHP's popularity is still growing at a 8-11% rate, much larger than the 4% monthly growth of server-side applications. PHP is used in 6.5 million sites. PHP was configured on 39% of Apache servers, while Perl accounted for 11% of the market share, ranked fourth. Apache maintains a market share of 59% of Web servers, followed by Microsoft at 28%.   Famous companies using PHP are: Unilever, Philips, NTT, Cisco, Japan Airlines, Air Canada, Lufthansa, GE Marketplace, Wallstreet:online Germany, Auctionwatch, Villagevoic, Dialpad, and BMC, and many more, more than 20 of the world's 40 Web sites have been developed in PHP language.

PHP and Java Advantage Comparison

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.