java or PHP? To the tangled people

Source: Internet
Author: User
Tags java se

reprinted from: http://www.72xit.com/486.jsp

In fact, this title is not very appropriate, Java and PHP seems to have no relationship, in terms of its origin, there seems to be nothing comparable, but when the network appeared, web2.0 era, when the Web app stir, when the enterprise-level development applications, it seems to pull them up to a height, Entered a so-called phase of fire and fire.

Harry Let's not make any comments or judgments about my pseudo-proposition, here we only write to friends who are entangled in PHP or Java.

Let's say PHP, the predecessor of PHP named Personal Home Page, later renamed Hypertext Preprocessor, from its literal understanding, its route and style is very clear, he is for the site, he was born, simple, easy to learn, Easy to deploy quickly by the vast number of webmaster programmers accepted, this time the traditional CGI has been left behind the brain, the current I use the web app also on the enterprise mailbox is still using CGI, in fact, I did not know the CGI, it fire when I just know the appearance of computer Zhang, so my understanding of the CGI is still in the mysterious stage. Then the shortcomings and shortcomings of the ASP more and more are not accepted, this time PHP all the way up, on the current trend, has stabilized the first personal site, please pay attention to personal website.
PHP syntax refers to Perl, C language, and can be integrated in HTML, is an explanatory script language, efficient, fast.
Application
PHP is a very wide-ranging language, especially in the development of Web applications. In general, PHP is mostly run on the server side, by running PHP code to generate a Web page to provide browser read, but also can be used to develop command line scripts and client GUI applications. PHP can be run on many different kinds of servers, operating systems, platforms, or with many database systems. There is no cost to use PHP, the official organization PHP Group provides complete program source code, allowing users to modify, compile, expand to use.
Security--I think this is the fundamental concern.
According to national vulnerability database data, the proportion of databases attacked with PHP is: 20% 2004, 28% 2005, 43% 2006, 36%, 35% and 32% 2009[32]. Many of these vulnerabilities can be done remotely, such as hackers can attack the server through a network connection, to steal or destroy data, send spam or distributed denial of service attacks. But with more attention, PHP is becoming more and more secure.
It seems like PHP is perfect, but
PHP official website by Black event
December 17, 2010, the PHP Code "contributor list" was added to the words "wolegequ gelivable" (Chinese meaning "I'm going to give force"), about half an hour later was deleted. March 19, 2011, the official release of the PHP statement that the hacker may be through the wiki.php.net as a portal to attack the code system. And, the authorities have checked for code submissions since version 5.3.5, and no malicious content has been found. But officials also said the details of the attack had not been fully mastered by hackers.
In this view, the celestial geeks (what we call the "geek" for the technical mania) are very gelivable!
I personally think that the fundamental weapon of PHP's dominance is

    • Speed, speed, speed! Of course, he is for the ASP to compare.
    • Advanced memory Management, no ASP issues
    • MySQL makes PHP more exciting

This is my personal humble opinion, ultimately want PHP can be deployed in lamp even now lnamp environment, they are free, yes, before and after all is free, no longer for Microsoft royalties. This is why I think PHP is now dominating the site, while more and more people are joining in, the future is still immeasurable. So, I also love PHP, also sent to hope to enter the PHP family of friends, come, want to do! , see more and more famous big sites (such as Facebook, MediaWiki, etc.) are PHP-based, and few successful Java sites!
Just do it!

The other protagonist of this pseudo-proposition (Java)
Let's take a look at the history of Java

May 23, 1995, the Java language was born
January 1996, the first jdk-jdk1.0 was born
April 1996, 10 major operating system vendors affirmed that Java technology will be embedded in their products
In September 1996, about 83,000 Web pages applied Java technology to make
February 18, 1997, JDK1.1 released
April 2, 1997, JavaOne meeting, the participation of more than 10,000 people, the time of the world's similar conference size of the record
September 1997 , Javadeveloperconnection community members more than 100,000
February 1998, JDK1.1 was downloaded more than 2,000,000 times
December 8, 1998, JAVA2 Enterprise platform Java EE released
June 1999, Sun releases three versions of Java: Standard Edition (J2SE), Enterprise Edition (Java EE) and mini-version (J2ME)
May 8, 2000, JDK1.3 released
May 29, 2000, JDK1.4 released
June 5, 2001,  Nokia announced that by 2003 will sell 100 million Java-enabled mobile phones
September 24, 2001, j2ee1.3 released
February 26, 2002, j2se1.4 released, since the Java computing power has been significantly improved
September 30, 2004 18:00pm,j2se1.5 released as another milestone in the development of the Java language. In order to indicate the importance of this version, j2se1.5 renamed Java SE 5.0
June 2005, JavaOne Conference, Sun Company Open Java SE 6. At this point, various versions of Java have been renamed to remove the number "2": the name of the Java ee,j2se renamed to Java Se,j2me renamed to Java ME
December 2006, Sun Company released JRE6.0
September 2010, JDK7.0 has been released, adding a simple closure function.

Other features of Java not much to say, simply to say
Security
The Java language is secure. Java is typically used in a network environment, and Java provides a security mechanism to prevent malicious code from attacking. In addition to many of the security features of the Java language, Java has a security mechanism (class ClassLoader) for classes that are downloaded over the network, such as assigning different namespaces to prevent the substitution of locally named classes, byte code checks, and provides security management mechanisms (class SecurityManager) for Java applications to set up Security Sentinel.
And Java's high-performance
Java is really high-performance compared to those high-level scripting languages that are interpreted. In fact, the speed of Java is getting closer to C + + with the development of JIT (just-in-time) compiler technology.
Now look at the statistics, Java still dominates the top, there is a lot of love for Java, but have to say that Java is too difficult to learn, to master him really is not so simple.
Java in the more than 10 years of development has been in the hearts of many developers, such as "Dragon Slayer Sword", "the Sword of Leaning to Heaven."
So if you're interested in Java, think about it:
  

      • Are you interested in learning Java?

  

    • Can you stay calm and study hard?

If you think you can, if you have the willpower to learn the Java EE, you need to know about the related peripherals, such as: Spring webwork Struts Hibernate Quartz Velocity IBATIS HSQLDB Liferay etc. etc...
This may be one of the reasons why everyone is looking and daunting, it is too difficult for a person to learn, it seems that Java is a monster, even in the server deployment is extremely perverted.
But it has to be said that more and more people are enthusiastic about the language, his charm in no one is different. Similarly, I also love Java, and work in this area, if you are willing to enter the Java family, also welcome you.

Actually said so much, is not to let the language to distinguish a high and low, or better or worse, language is language, so-called existence is reasonable principle, both of their future is immeasurable. Perhaps you say that in the site to build PHP is undoubtedly a overlord, and Java is not even a decent site, but for the enterprise level, the Java EE and. NET, it seems that there is no PHP solution on the inside. This is each has expertise, we do not have to struggle with that more NB some, in fact, there is no most NB, only more NB, haha.
My understanding is that PHP is not the Java programmer, said Java is not as PHP is PHP programmer, in fact, no matter how compared, is not fair, like people, always can not hold your strengths and other people's weaknesses than it, or pragmatic point, as long as the problem can be solved, is a good solution , no matter which one you are proficient in, is a cow, if you are a master, you will not be wedded to which language is better than which language, but that solution is even more!

java or PHP? To the tangled people

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.