Install PHP PEAR

Source: Internet
Author: User
Tags pear php basics
1. What is pear? Pear is an official open-source PHP class library,
PHP extension and application repository. Pear indicates a pear in English. Pear compiles common functions in PHP program development into class libraries, covering page presentation, database access, file operations, data structures, cache operations, network protocols, and many other aspects, you can use it easily.
2. Why pear? PHP is a very good scripting language that is concise and efficient. With the release of 4.0, more and more people use it to develop dynamic websites. It can be said that, PHP has become one of the best internet development languages. Especially for website developers who need to develop small and medium-sized commercial applications quickly and efficiently, PHP is the preferred language. However, with the increasing number of PHP applications, there is a lack of unified standards and effective management for these applications. Therefore, it is difficult for the PHP community to share their code and applications as easily as those in the Perl community, because PHP lacks a unified code library like CPAN to classify and manage application code modules (Everyone familiar with Perl knows that CPAN is a huge library of Perl extension modules, the written application modules can be placed under the appropriate category directory under CPAN. Other users can easily reuse them. Of course, you also need to follow the rules when writing the application module .)
To this end, pear came into being, and has been distributed along with the PHP core since 4.04. 3. What benefits does pear bring to me? 1. as mentioned above, pear manages the pear application code library according to certain categories. Your pear code can be organized into appropriate directories, others can easily retrieve and share your results. 2. pear is not only a code repository, but also a standard. Using this standard to write your PHP code will enhance the readability and reusability of your program and reduce the chance of errors. 3. Pear builds a framework for you by providing two classes to implement functions such as destructor and error capture. You can use these functions through inheritance.
4. What is the purpose of pear? Open-source code organization library for a PHP user, code distribution, package maintenance, and system, and a standard PHP basics class written in PHP (PFC) PHP extension Public Library (PECL ),
For more details, refer to the following website that supports PHP/pear groups, email list, and image download 5. What are the entry-level materials for pear? Php pear official site http://pear.php.net/
Php pear Chinese station http://www.pearchina.com/
Php pear manual http://pear.phpv.net/cn/
Use pear to write your next PHP Program

Http://www.ibm.com/developerworks/cn/linux/sdk/php/pear1/ first enters the command line, enter the corresponding path :( enter the following command under the command line to read the http://pear.php.net/go-pear file) you will find
Enter PHP go-pear in the command line to run the go-pear installation program. OK ..... in fact, do not need so much trouble the above steps, can also be in Wamp/PHP/go-pear.bat double-click Run OK ..... after you configure the installation path of pear through this menu, press enter to download and install the pear package. OK .......

Related Article

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.