php - PEAR config-set error

  • OS: Win 7
  • XAMPP 1.7.7 portable
  • Windows command prompt
  • D: is the thumb drive

I'm trying to follow this post to fix PEAR settings.

When I enterpear config-show These values are returned.

PEAR executables directory     bin_dir          D:\path\to\xampp\php
User Configuration File        Filename         C:\Windows\pear.ini
System Configuration File      Filename         C:\Windows\pearsys.ini

There are no local PEAR files on my machine. When I enter:

pear config-set doc_dir D:\path\to\php\pear\docs  

This is returned

config-set: only the layers: "user" or system are supported

How do I fix this?




$ pear help config-set
pear config-set [options] <parameter> <value> [layer]

Could it be that you have a space somewhere in your path? If yes, you have to quote that argument.

People are also looking for solutions to the problem: php - Magento address save after hook & database update


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.