PHP is a no future embedded scripting language?
Today, I saw a special text when I check the information in 9CBS, and the title "PHP is a prominent embedded scripting language."
The reasons are as follows:
PHP lacks scale support. Lack of multi-layer structural support.
PHP is extremely unpredictable to implement a confusion that cannot be unified database interface support.
I am very regrettable to see this article, this kind of unrestricted language is more modern.
From the reason for this article, the author's understanding of PHP is largely derived from domestic inferior computers. If he carefully viewed a document on the official site of the PHP, it will not make some low-level errors. Here I am inadvertently comparing PHP and other languages, just clarifying people who don't know PHP: PHP is not what you see.
First let's see the original text:
First, PHP lacks scale support.
The like of embedding language, one is ASP, one is JSP. The former can pass Microsoft Windows COM /
DCOM gets ActiveX support, the latter can be supported by Sun Java Java Class and EJB
If PHP lacks business company support (lack of not meaningless), then this point is very objective. PHP does not have a large company support like Microsoft, Sun. On a large distributed system, PHP is indeed weak, but keep in mind that it is just a scripting language. In this point, PHP has been made enough. In fact, in PHP4, call COM and Java are very easy - based, if you look at the author's point of view, PHP also has Microsoft and Sun in support J
Second, lack multi-layer structural support.
For large load sites, the solution is only one: distribution calculation. Database, application logic layer, indicating the logical layer
This is separate, and the same level can also be separated from the flow, form a two-dimensional array. ASP can pass DCOM and Microsoft TRA
NSCATION Server to get this structural support, JSP can via EJB / CORBA and many manufacturers Applica
Tion Server to get this structure support, but PHP does not have such conditions.
In fact, most PHP applications use multilayer structures, rather than two layers in the human eyes of PHP. Both of the large-scale PHP applications are at least HTML templates (user interface layers), PHP core class (logic layers), data abstraction layers, and actual database layers.
From the top, you can see that PHP can also be based on multi-layer structures. It supports multi-storey, but does not emphasize multi-storey architectures to be determined by the actual situation, not multi-layer will be good. At this point, we can also see PHP design ideas: technology is applying services. High quality and efficient completion tasks are the first. As for the distributed operation, use Java to do it, then integrate it into our PHP project.
Third, PHP is extremely unpredictable to implement a confusion that cannot be unified database interface support, such as to Oracle,
MySQL, Sybase interface, different from each other. This makes people feel uncompristeous, and it also makes it in electronics
The use of blocked in business - even Perl gets an abstract database interface through DBI!
This can indeed be said to be a shortcoming of PHP, but from a long time ago, PHP programmers noted it. Committed to improving its efforts have never stopped, it is already quite effective. That is the AdoDB class. With this class, you can use the same interface operation including a variety of databases in Acess. It is equivalent to the data abstraction layer in the upper image, of course, you can also implement the data abstraction layer. The PHP package does not contain some support that is actually widely used - if you need it, you can add it yourself. The components need to be customized are also one of the reasons for PHP efficient. Then let's take a look at the future of PHP. Since it is the future, you can't only put your eyes in PHP4, and PHP5 that is already in the beta version is not seen. PHP4 has a big defect, it is incomplete to the support of the class, you can only pseudo the class. OOs in PHP5 have been fully supported, while syntax is more close to Java. At the same time, PHP5 begins saving the process in memory like JSP, and no longer creates a process for each access. It can be seen that PHP is gradually integrating the advantages of other scripting languages. It is clear that such a dynamic language will become a strong in the scripting language.
In addition, PHP is mainly used for small and medium-sized enterprise architectures. In fact, as long as you think about the ratio of SMEs and giant enterprises, you will find that there is fish.
PS: As long as it is best to complete the application, the language is secondary, it is just a tool. Of course, everyone has their own choice, I don't oppose you express love for some language, but please don't achieve a language that degrades a language, especially your unfamiliar language.