PHP for the evaluation of three kinds of mainstream web development technologies

Source: Internet
Author: User
Tags interface ldap mysql php and requires version linux
web| Evaluation | Mainstream Author: Huangdong
Php:personal Homepage

What causes PHP to appear? It is a small application that a technician hopes to use in a quick way to complete his own personal homepage. And when he got out of the corner, PHP, which enabled a person to quickly complete a lightweight web application under a variety of operating systems. So in a few short years, PHP quickly upgraded its version, while in the GNU World found a childhood partner----Apache. This finally lets PHP have the foundation, can run in an optimal environment, and since two products are open source products, so you can use their source code to the two products in the most perfect way together, use it as a product. Personally think that PHP is free software in the Web application platform a winning tool, if not the advent of PHP, there will be many people think that free software represents the high-tech requirements of developers, difficult to remember the code, complex tools ... PHP enables a person who will use basic to quickly learn and fulfill the user's needs in a very short time.

How do you say php? If the ASP is a COM, which PHP is more accurate to say that PHP is a pure script translator. This is also a major reason why PHP is upgraded from 3 to 4, and in the 4 version it rewrites the parser, which speeds up the overall performance of PHP. And you'll understand why PHP needs to be able to do the same with the Lib Library of the corresponding system when it comes to supporting this or that kind of extended functionality. Because it is the authentic "translator", so it is to translate script into the functions that need to be executed, and then execute them, the external expansion can not be carried out by some "dynamic load" way, so can only static editing into PHP (this can only be in Windows except).

Strong:

1, a fast learning, cross-platform, have a good database interaction capabilities of the development language. ASP is not comparable to it is this cross-platform capabilities, and it is its ability to let Unix/linux has a kind of ASP-like development language. Simple grammar, easy to write, and now there are a lot of books in the market, while there are a lot of code on the Internet can be shared, for a beginner want to learn some "advanced UNIX" under the development is a good starting point.

2, with the Apache and other extensions are tightly integrated. PHP and Apache can be combined in a static way, and other extensions can be combined in this way (except the Windows platform). The biggest benefit of this approach is maximizing CPU time and memory, while effectively leveraging Apache's high-performance throughput capabilities. At the same time the external extension is also a static link, so as to achieve the fastest running speed. Because the interface to the database is also used in such a way, a localized call is used, which also gives the database the best performance.

3, good security. Because PHP itself is open to code, its code is tested in the hands of many engineers, and the way it is compiled with Apache also gives it a flexible security setting. So until now, PHP has a proven security performance.

Weak:

1, database support of the great changes. Since all of PHP's extension interfaces are developed by an independent team, while developing to create personalized operations for the data, PHP supports many databases, but the development language for each database is completely different. This creates a work for a database that requires developers to do almost all of the code changes after the database is upgraded. In order for the application to support more kinds of databases, developers need to use the same database operations using different code to write n code library out, so that the programmer's workload greatly increased.

2, installation is complex. Since every extension of PHP is not entirely done by PHP itself, it requires a lot of external application libraries, such as graphics need the GD library, LDAP needs LDAP library .... In this way after the installation of the corresponding application, and then linked into PHP. This is what I used to say to netizens in the Code Alliance newsgroup to be sure to run PHP under Freebsd/linux/unix. It is only in these environments that the corresponding extension libraries can be easily edited. These are the problems that developers face before they use PHP, and it's the kind of problem that makes many developers switch to other development languages, and Unix doesn't have as many users.

3, lack of enterprise-level support. Without the support of the component, all extensions would have to rely on the interface given by the PHP development team, and in fact, there are not enough interfaces. It is also difficult to add features such as cluster and application server to the system. and a large site or an enterprise-class application must be such support. Note: After the 4.0 version of PHP has added support for Servlet/javabean, perhaps this support will be enhanced in later versions, perhaps this support will be the starting point for future enterprise-class support in PHP.

4, lack of formal business support. This is also the shortcomings of free software, I think in the domestic PHP developers are rapidly increasing, I believe that in the near future, such support will be more.

5, cannot realize the commercialization application development. Because PHP does not have any coding development work, all of the development is based on scripting technology to complete. So all the source code can not be compiled, so the application can only be done by themselves or internal use, can not achieve commercialization.

Summarize:

Applicable to the people: familiar with the UNIX environment, the need for a minimum of input to complete the rapid application development.

Applicable platform: Freebsd/linux/unix operating system, Apache server application: High Internet access, rapid database development applications.

Learning methods: The Internet rich resources on the Internet rich source code resources, can refer to such a routine to complete their application. Several recently published PHP manuals on the market.

Recommended development tools: Home site/phped

Recommended development environment: FreeBSD 4.1/redhat 6.1 operating system/apache 1.3.12/mysql 3.22/p 200/64m HD

Recommended application Environment (min): FreeBSD 3.5/mysql 3.22/apache 1.3.12/p 200/128m ram/9g HD

Recommended application Environment (best): FreeBSD 3.5/sybase 11/apache 1.3.12/p III 500/512m ram/18g HD



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.