This article is to introduce the content of PHP is a treasure trove of pear, here to share to you, the need for friends can refer to
You may already be a veteran of PHP and write a lot of great code. But if you want to add them to your current project now, are you struggling? Your friend wants to use your code as a module in his project, but you find that you're using a different coding style, adapting it, or even rewriting one!Please come with me,
Cactus Studio
One, what is pear? Why do you need it?
To create a tool similar to the Perl cpan file, Stig S. Bakken created the Pear project. The basic goal of pear is to develop a knowledge base for PHP extensions and library code, and the most ambitious goal of the project is to try to define a standard that will help developers write portable, reusable code
What is pear?
PEAR is an abbreviation of the PHP extension and the application library (the PHP Extension and application Repository). It's a code warehouse for PHP extensions and apps, simply put, Pear's php is like CPAN (Comprehensive Perl Archive Network) to Perl.
This shows that pear is the repository of PHP code, where you can find a lot of useful code to
▓ Kit Introduction
The most important thing about pear is that there are a lot of libraries that can be referenced by developers for free, and these libraries will be wrapped in packages, and a file named Package.xml will be placed in each suite. This is the Pear team's rules, this file records the library's file structure, version number, and so on, with this file, the library is compressed to qualify as a
In the previous article, we introduced the concept of pear, coding rules, simple use method, you may have a preliminary understanding of it. This time, we'll introduce the functionality and usage of some of the modules in the existing Pear library.
First, naming convention
Before we get to the existing Pear module, let's take a look at how
Overview
The most important thing about PEAR is that it has many library programs that developers can reference for free. These libraries will be packaged into a package. xml file. this is the PEAR team's rule. This file is based on the file architecture, version number, and other materials of the program library. With this file, after the library is compressed, it can be called a "Suite 」, with this xml fi
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. PEAR is not only a code repository, but also a standard. Using this standard to write your PHP code will en
Error | Error handling pear provides a powerful error-handling mechanism. This article shows you how to benefit from this system.
Many programs already use Pear's package. Many PHP programmers are more or less familiar with the error handling in pear. But this mechanism is not limited to Pear's package--everyone can use these methods in their classes and programs.
This article is divided into two section
OverviewThe most important thing about PEAR is that it has many library programs that developers can reference for free. These libraries will be packaged into a package. xml file. this is the PEAR team's rule. This file is based on the file architecture, version number, and other materials of the program library. With this file, after the library is compressed, it can be called a "Suite 」, with this xml fil
Fake eggs also have a secret recipe. A total of 10 kinds of raw materials are listed, including sodium alginate, Edible Gelatin, glucose, lysine, sodium benzoate, and food pigments. Ren said that sodium alginate and gelatin are the most important and are used to thickening the egg and yolk. If you want to add some nutrients to your eggs, you can also add a small amount of milk powder.
Pour half a cup of hot water, and then start to use these raw mat
On Virtual Hosts rented in China, some hosts provide pear class libraries, but you don't have to expect them to upgrade or install the pear packages you need. in this case, you can try to install a pear under your own virtual host.
Install pear through sshMost of the domestic virtual hosts do not provide ssh, but if it
Pear is a php extension and application library, contains a lot of useful classes, after installing the php5.0, pear is not actually installed, the installation method is as follows:
1. In the PHP directory, double-click Go-pear.bat.
2. Follow the prompts to enter some settings information, mainly to the LAN gateway Plus, such as http://192.168.0.1:80/, pear to u
On the domestic leased virtual host, some hosts themselves provide the Pear class library, but do not expect them to upgrade or install the required pear package. In this case, you can try installing a pear under your own virtual host.
Install pear with SSH
Most of the domestic virtual host does not provide SSH, but
Timely delivery of applications is key to determining what technology the solution uses, with PHP pear (php Extension and application repository:php extensions and application libraries) that greatly facilitates its development process. Pear is a code base that provides pre-written classes for standard program functions, greatly reducing application development time. Pe
Installing Pear
--------------
Pear is a php extension and application library, contains a lot of useful classes, after installing the php5.0, pear is not actually installed, the installation method is as follows:
1. In the PHP directory, double-click Go-pear.bat.
2. Follow the prompts to enter some settings information, mainly to the LAN gateway Plus, such as ht
PEAR: common modules. In the previous article, we introduced the PEAR concept, encoding rules, and simple usage. you may have a preliminary understanding of it. This time, we will introduce some of the existing models in the PEAR Library.
In the previous article, we introduced the PEAR concept, encoding rules, and simp
If PEAR is installed in Windows and PHPUnit is successful, the following installation steps are required: Windows + APMServ5.2.6PHP5 and above: 1. start Windows- gt; run- gt; cmd2 and install command d: cdD: APMServ5.2.6PHPD: APMServ5.2.6PHP gt; go-pear.bat? Areyouinstall install PEAR in Windows. PHPUnit is successfully installed.
Environment requirements:
Windows + APMServ5.2.6/PHP5 or aboveInstallation s
Install pear
--------------
Pear is a php extension and application library that contains a number of useful classes, and after installing php5.0, pear is not actually installed, and the installation method is as follows:
1. Double-click Go-pear.bat in the PHP directory.
2. According to the prompts to enter a number of settings information, mainly to the LAN gat
Copy and install the local Pear on the virtual host. read the copy and install the local Pear on the virtual host. on the virtual host rented in China, some hosts provide the pear class library, but you don't need to expect them to upgrade or install the pear package you need. in this case, you can try to install a
With the Pear Package Manager, you can browse and search for the packages you've contributed, view the latest releases, and download the packages. The syntax for executing it on the command line is as follows:%>pear [options] command [command-options]
Open a command-line prompt, execute%>pear, and output a set of common commands and some usage information.
%
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.