Translator's note: This is a "long essay" written by a German about PHP. In the article, the author boasts that PHP is so magical that it has the power to dominate the world. Regardless of whether its point of view is correct or not, such a classic "bragging article" is very worth reading for us fearful PHP programmers. Without further ado, let’s start appreciating this wonderful piece of deception!
1. Preface
Definition: PHP is a simple, object-oriented, interpreted, robust, safe, very high-performance, architecture-independent, portable, dynamic script language. PHP has the Class keyword similar to JAVA. Because it does not require a virtual machine, it is 5 times faster than JAVA. PHP is quickly becoming a standard, general-purpose, object-oriented scripting language. PHP can be used not only to develop web applications but also general applications. PHP is a powerful scripting language. PHP will defeat PERL/Python and replace it. PHP is the next generation of PERL/Python scripting. PHP can do any job that PERL/Python does, and do it more, better, and more concisely! ! PHP is the abbreviation of Hypertext Pre-Processor, which is a server-side HTML script/programming language. PHP is syntactically similar to C and can run on Apache, Netscape/iPlanet, and Microsoft IIS web servers. PHP as a tool allows you to create dynamic web pages. Web pages using PHP are no different from regular HTML pages. You can create and edit them in the same way. PHP allows you to write simple scripts directly in HTML files, which is very similar to Javascript. The difference is that PHP does not depend on the browser and is a server-side language, while Javascript is a client-side language embedded in HTML. Conceptually, PHP is similar to Netscape's LiveWire Pro product, Microsoft's ASP, and SunMicrosystem's JSP. PHP can be used not only to create web applications, but also to develop ordinary stand-alone applications. The strength of PHP is: ·PHP is the best technology. Other technologies, such as PERL, Python, Tcl, VB script, and ASP, are relatively old and inferior. Even Java/JSP is under PHP. ·Open source code ·Extensive database connection ·A large number of extension libraries ·As a multi-purpose scripting language, it is better than PERL, VB script, ASP and JSP. Why choose PHP? Because PHP is the best, here are the reasons: · PERL "bad taste" because its programs are not easy to read and maintain, and are not object-oriented. Forget PERL and switch to PHP. PERL programmers will abandon PERL because they fell in love with PHP! PHP is actually the "modern version of PERL", just with a different name. ·Java is object-oriented, but very slow. Java programs travel very slowly, and the only complaint about it is-"Java is so slow."And very complex (with many layers, such as JVM, JIT, etc.). This often causes problems. Now that we have Linux, why do we need Java? · Python is "good", but it doesn't have the parentheses and braces in C, which are very useful for manipulating code in the vi editor. If you can't use the vi/emacs editor's command to search for brackets/braces to quickly manipulate the code, it's like losing your hand. PHP is technically more advanced than Python. ·PHP is the best because it is object-oriented and absorbs the essence of C/C++/Java/PERL. PHP can replace PERL, Python, Java, C, C++, awk, Unix shell scripts, Visual Basic and other languages! ! PHP runs directly and is written in C. ·Every computer programmer knows that PHP is the best. If you don’t believe it, ask the programmer next to you. ·Only PHP can dominate in the 21st century, the 22nd century and beyond. ·There is a very important reason why we think PERL, Python and Java programmers will fall in love with PHP. In the past, many companies around the world regarded PHP as a "highly confidential and strictly confidential" computer programming language, but now it has become the most famous and is used in many projects such as Web, Internet, E-commerce and B2B. The most widespread object-oriented scripting language. Even today, there are still many competing companies that treat PHP as a highly confidential thing and will never reveal anything to the outside world (competitors). PHP will sweep the entire world like a storm, and the IT industry will be shocked. The power of PHP is that it is cross-platform and can run anywhere. Such as Linux, Windows 95/98/NT/2000/XP, Solaris, HPUX and various UNIX. PHP only needs to be written once and can be deployed anywhere. PHP can run on a variety of web servers such as Apache and Microsoft IIS. PHP is 5 to 20 times faster than Java! ! Actual comparison tests show that PHP runs about 3.7 times faster than Java. PHP is so easy to use, you can use it to develop very complex web, e-commerce and general stand-alone applications very quickly in a very short time. (In the future, PHP will imitate most of the functions of Java, and I believe Java programmers will also like it. PHP will include keywords in Java, such as class, extends, interface, implements, public, protected, private, etc. Etc.) PHP has object-oriented features, which absorbs the best parts of Java, C++, PERL and C. PHP is arguably the gem among all scripting/programming languages. Soon it will become the Mecca for programmers around the world. PHP can run on Window95/NT/2000/XP or on various UNIX. We're going to be surprised - PHP is very likely to become the computer programming language of the 21st century. You can use Zend Optimizer to compile and optimize PHP to make it run faster. Zend Optimizer has been integrated in PHP4.0. First, you write your application in PHP scripting language during development, testing, and debugging. Once the project is complete, you can use the Zend compiler to compile the PHP files into a faster executable program. For e-commerce projects, you generally need to use a combination of PHP (70%), HTML/DHTML/XML (25%) and 5% Javascript (client-side validation). (Listen to the breakdown next time)