installing pear on windows

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

installing pear on windows

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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';"
Post Reply