This article is mainly to share with you the basic use of PHP pear, mainly in the form of text and code to share with you, and hope to help everyone.
Pear is a PHP lawsuit party open source class library, powerful and convenient, many people do not know where to start using pear, network search, most for go-pear.php installation, etc.
Simple description: Before PHP 4.4 version, you need to use go-pear.php, after PHP has been installed by default pear, but can use Go-pear.phar file for pear upgrade
1. Download go-pear.php or Go-pear.phar from http://pear.php.net/go-pear.php copy and save to PHP directory
2.cmd Way into PHP directory, run PHP Go-pear.phar
3. If there is a problem, follow the relevant instructions to resolve
Use of Pear
1.cmd mode into PHP directory
2. Execute pear to check if the command is available
3.pear list shows the packages that have been installed
4. Pear Install new Package * *
5. Example: Pear install html_quickform (Installation quick form), after the installation is complete, you can find Html/quickform in the Pear directory.
6. In the source code, refer to the corresponding directory of the class file for use.