Pear Tutorial (i)--pear introduction and Installation _php Tutorials

Source: Internet
Author: User
Tags pear

First of all, please open this link http://pear.php.net/manual/en/let's see what Pear is, click Chapter 1. Introduction.

PEAR is short for "PHP Extension and application Repository" Andis pronounced just like the fruit. The purpose of PEAR is toprovide:pear is the abbreviation for "PHP Extension and Applicationrepository", pronounced the same as the English word "pear", so the logo you see on this site is a pear.

* A Structured Library of Open-source code for PHP users all PHP developers can use open source code libraries
* A system for code distribution and packages maintenance is a code distribution package
* A standard style for code written in PHP, Specifiedhere is a PHP code format standards
* The PHP Extension Community Library (PECL), see Morebelow is a repository of PECL
...
In a word, pear is a powerful PHP library, my bloggermap is also used this library, and this library package is complete, including database, form generation, cache everything, I will gradually introduce to you later.

Reader's request: 1. The Wamp (window+apache+mysql+php) server will be built. 2. will be simple php3. Willing to use Pear

Here is an introduction to the installation of pear (this is important):

First of all, the PHP include path problem, this is similar to Java classpath, there is a default path, such as PHP.ini set a few default path/etc/include or/etc/demo, then in the PHP code, If there is a similar "include ' file.php ';" The inclusion of the statement, the execution of the program will be in the current folder search whether there is a file.php this file, if not, then go to search/etc/include or/etc/demo folder whether there is this file, if still not, then error!

For the foreign virtual host, many have installed PEAR, and the installation of the PEAR package is very complete, so you in PHP file reference include "PEAR.php", The program will be referenced based on the path php.ini finds pear, but if the virtual host does not have pear installed, we will have to install it ourselves.

Install pear is a very simple process, can not fear, the following or guide you to see the Help manual, link here (because many people do not understand the pear file structure, so this manual was deleted), but no relationship, you can go to this link to see. Probably very few people have the patience to look down, anyway I can not go down, in fact, the most important thing is this line, that is to tell you the default include path to add PHP method

OK, let's start with the installation steps:

First in the root directory of the site suggested folder "Tutor", and then set up a Folder inc, download pear, the current latest version of the download address is http://download.pear.php.net/package/PEAR-1.6.1.tgz.
Download complete unzip, put Pear in the INC directory, expand the directory;
Path to the Includedefine,].define,web_dir.//pear directory
, Pear_dir. Path_separator.? >
Open http://127.0.0.1/tutor/demo.php again and find out what? The mistake is gone!
At this point, pear installation ends

http://www.bkjia.com/PHPjc/486624.html www.bkjia.com true http://www.bkjia.com/PHPjc/486624.html techarticle first of all, please open this link http://pear.php.net/manual/en/let's see what Pear is, click Chapter 1. Introduction. PEAR is short for "PHP Extension and Ap ...

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