Page 1 of 1

installing pear on windows

Posted: Mon Mar 31, 2003 1:29 am
by jarow
I have PHP version 4.3.0 that did not come packaged with PEAR and I would like to download it. I found a script to install PEAR from the PHP Group. The instructions read as follows:

On Windows as of PHP 4.3.0 you can launch go-pear like this:

> cli\php -n -r "include 'http://go-pear.org';"

What I don“t understand is where I launch this from, from the MS Dos prompt? or do execute PHP.exe and run it from that window?

Any specific details would be greatly appreciated

thanks

Jim

Posted: Mon Mar 31, 2003 5:10 am
by volka
yes, open a dos-box and run the command.
it needs a php-version that supports the CLI interface. The package installed on your system might contain a program php-cli.exe, use it if available. If not try php -v for the available php-executables as it will tell which interface is supported, e.g.
PHP 4.3.1 (cli) (built: Feb 15 2003 23:07:00)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
So for my system (if php-cli.exe wouldn't be in PATH) the command is
c:\programme\php431\php-cli.exe -n -r "include 'http://go-pear.org';"