I installed PHP with Web Platform Installer. Now I need to install PEAR but installation documantation of Pear is saying that
you have to manually execute the batch file located in e.g. c:\php\go-pear.bat
PHP folder isn't in c:, it is located in C:\Program Files\PHP and there isn't any file named "go-pear.php"..
Open the file in your browser, to verify the include_path your web server is using. pear list -a to see all packages installed, not only from the default channel.
I know this is old, but it still features in search engine results. And the self-reply above is unhelpful.
In Summary:
C:\Program Files (x86)\PHP\v5.3
C:\Program Files (x86)\PHP\v5.3
folderphp.exe -q go-pear.phar
Note: when changing default paths using the installer, the first time you use the file browser, it works. Subsequent usages (say to change another folder) fails and returns with an error. I had to Ctrl+C the install and just use the defaults.
My environment: Win-764, IIS (not IISExpress), and PHP 5.3.13 as installed by WebPI.
I later found some instructions (and similar page discussions) at http://pear.php.net/manual/en/installation.getting.php
Note: Downloading the go-pear version does not work on this setup (sorry link removed due to low rep restriction).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With