PHP4: behind the miracle
In 1995, Rasmus wrote his personal homepage with PHP; . It can be said that PHP is a miracle. I have always thought that there is a reason behind any miracle. Now, let us take this miracle to see the success of PHP.
1 is easy to use
The entry threshold for PHP is very low, it is minimal to the user. People who have learned C language don't need to use PHP. Their syntax is so similar, so that I often think that if I add $ with a C language variable to change to PHP. This makes a large number of C programmers selected PHP in the network script. In addition, PHP's function library is much better than the Asp's component system and Java huge library. In the programming style, PHP is more free, you can use n-style to write your script. These features make PHP becomes the preferred language of beginners. It is a very important strategy to seize beginners market. If anyone will remember his first love, people tend to have a deep feelings for the language initially learned. Even if I have grown it, I will use other languages, or I will always remember the language initially learned. At this point, PHP is well done.
2 Tailor
The PHP development group is a group of people who know the network. They are very clear about what users want. PHP is to do an excellent network scripting language, and it just wants to be a network scripting language. The function set provided by PHP is quite powerful in the network, and the focus is focused on network applications. Uploaded in PHP-free file uploads, the characteristics of super multi-database support have shown this feature. By the way, PHP does even support Access database. Focusing makes PHP exhibits extremely excellent performance on the network. There is a loss.
3 support powerful
PHP has a strong OpenSource group support, with tens of thousands of open source code on the network. You can integrate several existing programs to achieve your application, or you can analyze the master code to improve. PHP also has a lot of scalability projects to enhance PHP in a certain aspect. Like PEARs that focus on programming standardization and code reuse, providing smarty, which can be compilated template technology, and even develop GTKs for desktop programs.
After the analysis, we can see that the success of PHP has benefited from the strategic vision of the PHP development group. PHP provides a minimum working set, enabling users to efficiently complete their needs in the simplest way. This is what beginners need. Then it provides all aspects of solutions through convenient expansion, so you only need to learn something you want to use. When you have more and more, your level is also increased, when you are familiar with most areas, look back, you will find that you haven't known that you have arrived. PHP also provides a learning attitude.
ASP.NET J2EE: Wind and rain
The innovative wave of the online script boundary is initiated by Microsoft's ASP.NET. In ASP.NET, there is a very attractive thing-event drive mechanism. This is a common concept in desktop programming, and event drivers in scripting means that the server-side scripts (such as PHP, JSP, ASP), and client scripts (such as JavaScript and VBScript) package, make it work together. In this way, programming will become very convenient. There is also an advantage in the .NET environment, you can even do not even server-side scripts and client scripts, because in ASP.NET, you can use the language of C # like directly - even $ plus. This turned the road to the network development of the traditional programmer of the MS camp, and the PHP was also hit on the beginner market. It can be foreseen that will be greatly reduced in the future traditional programmers to PHP. However, ASP.NET's biggest problem is that it can only run on Windows, and now the mainland is vigorously developing Linux. This makes the living space of PHP seems to be wider, but let's take a look at Java. Java is also a miracle, issued the first version in 1995, now form three versions, cover the embedded system (J2ME) desktop (J2SE) and server (J2EE) three major applications. More importantly, Java has been recognized by most programmers. Now the best computer books in the world are mostly C or Java as a description language. Java is almost like C, becoming a belief. So, we don't want the programmer of the Java camp to turn to PHP. At the same time, PHP lost a lot of advantages in front of Java, open source and cross-platform Java. JSP in J2EE has also caused considerable pressure on PHP in the beginner market.
In terms of initiator markets, ease of use and open source support for PHP, and with the continuous improvement of machine performance, it can be said that PHP is in ASP in ASP with the continuous improvement of machine performance. Net and J2EE's slits survive and grow, it is a very difficult thing.
There are still many problems in PHP itself. Excessive low-level users. A large number of developers are in the entry stage, do not know how to improve themselves, leading to a large number of open source code irregular and inefficient, and will learn from these badges from these bad codes, so recursive. On the other hand, high-order users have to turn to other languages due to incomplete-oriented properties of PHP.
PHP5: concentrated coffee flavor
The PHP Development Group issued a PHP5 Beta1 in the year, we can see the counterattack of PHP from it. First of all, the development of PHP4 is still horses, and we can affirm that the development of PHP4 will continue for a long time. The purpose of this is to consolidate both users, and gradually fuse the new features of some PHP5 in future PHP4 versions, and achieve the smoothing transition of PHP4 to PHP5.
Let's see the changes in PHP5. In PHP5, we saw too many Java shadows. The OO system is almost Copy's Java, which guarantees that PHP high-order users are not lost, making them convenient to use the latest technical system to architecture their own applications. On the other hand, it is also convenient to use PHP for Java programmers, although this may be less. After improving the OO system, PHP has the ability to truly enter the enterprise market. Then PHP5 also adds a lot of things, like __get, making this system more easily. I don't know if this cup is popular like Java?
From the changes in PHP5, we have seen the direction in the PHP. One is to compete with JSP, strive to replace JSP in some aspects, becoming glue of Javabeans and servlet. This requires establishing a more close relationship between PHP and Java. The Zend Group is involved in the designation of the JSR specification. This specification will make you can directly New a Java object in PHP and call it. This also enables PHP to enter the enterprise market faster. In addition, if the script written by PHP can be compiled directly into Bytecode to run on the JVM, PHP's foreground will be much better. Another direction is integration between Java and .NET, integrating existing resources in some large applications. In PHP4, we can already call COM components and Java objects, and believe that PHP5 will provide more support in the future. Anyway, whether it is with J2EE and .NET competition or fusion, PHP is going to go, will be a passage of thorns. However, since PHP has come to the wind and rain today, what reasons do we have to believe that it can go farther?
BEST WISHES, PHP. - PS This is just a personal view of EASY's future development of PHP, may not be very mature, just give you a point.