Why does PHP have so many dependent programs?

Source: Internet
Author: User
Beginner PHP, installation found the need to install several dependencies (like Php-a, Php-b, php-c), very irritable.

Excuse me:

  1. Why does PHP install so many dependent programs?
  2. What are the classic must-wear (such as PHP-FPM)?
  3. What are the differences between these dependencies?

Reply content:

Beginner PHP, installation found the need to install several dependencies (like Php-a, Php-b, php-c), very irritable.

Excuse me:

  1. Why does PHP install so many dependent programs?
  2. What are the classic must-wear (such as PHP-FPM)?
  3. What are the differences between these dependencies?

Strictly speaking, those are not dependencies, that's the function module.
Libcurl this is dependence.
PHP itself is divided into three things, php-cgi,php-cli and php-fpm,cgi and FPM general two select one to install, recommended fpm. CLI is the shell to execute PHP tools, generally as required to install, such as writing a PHP file into the crontab, the need for the CLI, but also a more practical function.
In addition, the Classic function module has Php-mysql,php-curl and so on. Mysql,mysqli,pdo,curl,gd,pear,xmlrpc,imagemagick typeface is the classic package, the prefix is different depending on the environment, may be php-, may be php5-. PDO is used to replace MySQL and mysqli connection databases, and curl is used for POST,GD to generate verification codes, pear and pecl for installing extensions, XMLRPC for communication, and imagemagic for image processing. Specific features, Apt-cache search php or Yum search PHP can appear a word of the function of the introduction.
Divided into so much more than just want to install the time to install only the functions needed to streamline.
If the conditions permit, then the full installation is understandable.

  • 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.