Quote:
Phar "C:/wamp/bin/php/php5.3.0/PEAR/go-pear.phar" does not have a signaturePHP W
Arning: require_once (phar: // go-pear.phar/index. php): failed to open stream: pha
R error: invalid url or non-existent phar "phar: // go-pear.phar/index. php" in C :/
Wamp/bin/php/php5.3.0/PEAR/go-pear.phar on line 1236
Warning: require_once (phar: // go-pear.phar/index. php): failed to open stream: pha
R error: invalid url or non-existent phar "phar: // go-pear.phar/index. php" in C :/
Wamp/bin/php/php5.3.0/PEAR/go-pear.phar on line 1236
Press any key to continue ...,
Solution:
Modify go-pear.bat as follows:
@ ECHO OFF
Set php_bin1_php.exe
% PHP_BIN %-d phar. require_hash = 0./PEAR/go-pear.phar
Pause
========================================================== ===
Installation Process:
Method 1:
Install pear in windows xp
Environment: PHP4.3.10 + Windows XP
Installation steps:
1) work before installation
There is a go-pear.bat file under the folder generated after installing PHP
(My is C:/PHP/go-pear.bat)
2) execute the installer
Double-click the go-pear.bat, when there is a question and answer, all press Enter"
3) append path
Open your php. ini file and go
; Paths and Directories;
See if there is "include-path =". If not, append the file. If yes, add pear.
Include-path = ".; C:/PHP/smarty/libs; c/: php/pear"
4) view the PHP folder
In addition to go-pear.bat files, pear. bat and PEAR_ENV.reg
5) modify the Registry
Double-click the PEAR_ENV.reg file and select "OK" to complete the modification.
6) Automatic Setting of Environment Parameters
Double-click the pear. bat file.
7) check whether the installation is successful
Open the prompt command and enter "pear list" to check whether all libraries installed in the pear folder (my files are: c/: php/pear) are displayed.
Method 2:
--------------
Install pear
--------------
Pear is a PHP extension and application library. It contains many useful classes. After php5.0 is installed, pear is not actually installed. The installation method is as follows:
1. Double-click the go-pear.bat in the php Directory.
2) execute the installer
Double-click the go-pear.bat, when there is a question and answer, all press Enter"
3) install the basic package and prompt that the installation is successful.
4) Open the php. ini file in the windows directory and find the following:
; UNIX: "/path1:/path2"
; Include_path = ".:/php/shortdes"
;
Windows: "path1; path2"
; Include_path = ".; c: php/shortdes"
Remove the comment from the last line and change the following path to your PEAR path, for example:
Export de_path = ".; c:/php/shortdes; D:/ApacheGroup/php5/PEAR"
Save PHP. INI and restart APACHE.
---------------
Pear Command help
---------------
You can find the PEAR. bat file in your PHP root directory. This is the command for managing pear and double-click it to execute. To set the environment variable PATH, double-click the generated EV_XXX.REG file. Some of its command functions are as follows:
Security Protection:
A pear program running on the Web server:
Pear install packagename
The following packages are not supported:
Pear download packagename
Pear download-all
The package of the specified region is as follows:
Pear install filename. tgz
List:
Currently, all pear program regions can be obtained on the pear Website:
Pear remote-list
List Installed packages:
Pear list
List packages that can be upgraded:
Pear list-upgrades
Update (upgrade ):
Update package:
Pear upgrade packagename
Pear upgrade-all
Remove:
Remove the installed package:
Pear uninstall packagename
----------------
Install a new package
----------------
For example, you downloaded the new package xxx. tgz from the http://pear.php.net/package.
Copy it to the C: PHPPEARgo-pear-bundle directory and enter:
Pear install xxx. tgz
Then, extract the related files to the directory corresponding to C: PHPPEAR.
(Or directly enter pear install db in CMD to directly install available updates. As follows:
---------------
Instance
---------------
Download the PEAR: HTML_Common and PEAR: HTML_QuickForm packages and install them.
Create a new PHP file and enter the code
Require_once ("HTMLQuickForm. php ");
// Create a form object
$ Form = new HTML_QuickForm ('frmtest', 'post ');
$ Form-> addElement ('header', 'header', 'login ');
$ Form-> addElement ('text', 'name', 'username :');
$ Form-> addElement ('Password', 'Password', 'Password :');
$ Form-> addElement ('submit ', 'submit', 'Submit ');
// Output to the browser
$ Form-> display ();
?>