Advantages of php Summary What are the advantages of php

  • 2021-12-13 07:35:05
  • OfStack

What are the advantages of php?

PHP benefits:

1. Get started quickly. Programmers with other language foundations can get started in about 2 weeks, and can basically develop simple projects in about 1 month.

2. The development cost is low. The most classic combination of PHP is Linux + Apache + MySQL + PHP. It is very suitable for developing small and medium-sized web applications, because it is easy to use, so the development speed is relatively fast. Moreover, all the software is open source and free, which can reduce the investment.

3. PHP is an interpretive scripting language, which can be executed after writing the code. Unlike c, java, c + + and other languages, it needs to be compiled and executed, which saves time relatively.

4. Relatively speaking, the average salary of PHP programmers is 1% lower than that of c, c + + and java programmers, especially for small and medium-sized enterprises, it can save 1% cost.

5. Configuration and deployment are relatively simple. Compared with JAVA development, the configuration of JAVA development is much more complicated. Structs, Spring, Hibernate, Tomcat and many other places need to be configured. Even every time you write an SQL statement in the program, you need to configure 1 in Hibernate first. Sometimes redeploying an class file or jar file may also need to restart the Web server (Tomcat or Resin or other Web servers) to make the newly deployed library files take effect.

PHP development is mainly PHP own configuration files and Web server configuration (such as Apache or Nginx or Lighttpd, etc.), relative to JAVA is still simple 1, and after the new modification of the file does not need to restart Web can immediately take effect.

6. There are many open source frameworks or open source systems that can be used. For example, well-known open source frameworks include Zend Framework, CakePHP, CodeIgniter, symfony, thinkphp, etc. Open source forums include Discuz! , Phpwind, etc., open source blog WordPress, open source online shop systems such as Ecshop, ShopEx, etc., open source SNS systems such as UCHome, ThinkSNS, etc.

Content extension

1. Cross-platform, superior performance, 45% stronger than Windows when combined with Linux/Unix, and very economical when combined with many free platforms, such as LAMP (Linux/Apache/Mysql/PHP) or FAMP (FreeBSD/Apache/Mysql/PHP), or if the data application is large enough, you can consider replacing PostgreSQL or N to support N databases. (N) > = 10)

2. The syntax is simple. If you learn C and Perl, it is easy to get started, and it is partially similar to ASP. There are mature development tools, such as NuPHPed, or Zend Studio, etc., and Eclipse can be used under Linux platform.

3. At present, mainstream technologies are supported, such as WebService, Ajax, XML, etc., which are enough for application.

4. There is relatively complete support, such as using ADODB or PEAR:: DB as database abstraction layer, using Smarty or smart template as template layer, and using PDO (PHP Data Object) to access the database if it is PHP 5.1.

5. There are many mature frameworks, such as phpMVC supporting MVC, Prado supporting event-driven frameworks like ASP. net, Cake supporting rapid development like Ruby, On and Rails, etc., which are enough to meet your application requirements.

6. PHP 5 already has a mature object-oriented architecture, which can meet the basic object-oriented requirements. Suitable for developing large-scale projects.

7. There is a mature community to support the development of PHP.

8. At present, many large-scale applications use PHP, such as Taobao, Yahoo, 163, Sina and other large-scale portals, and many choose PHP as their development language, so large-scale portals can choose it, which I think is enough for you to use.

9. There are many open source frameworks or open source systems that can be used. For example, well-known open source frameworks include Zend, Framework, CakePHP, CodeIgniter, symfony, etc. Open source forums include Discuz! , Phpwind, etc., open source blog WordPress, open source online shop systems such as Ecshop, ShopEx, etc., open source SNS systems such as UCHome, ThinkSNS, etc.


Related articles: