Talk:PEAR
From DreamHost
ini_set
This is not clear in the text and I could not get this to work, so here is some clarity:
ini_set(
'include_path',
ini_get( 'include_path' ) . PATH_SEPARATOR . "$HOME/pear/php"
);
First, the second string can't be double-quoted because $HOME is not a PHP variable, it is an environment variable so it should be single-quoted. But even then, the path does not work and I had to put in my actual path (I assume this is because $HOME is not valid as the web server user). This is spelled out in the original post, but not clearly. So, the code as I finally got it working is this:
ini_set(
'include_path',
ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/sgarter/pear/php/"
);
FYI. I think this should be clarified in the original post as $HOME looks like valid PHP. -- Sgartner 13:39, 16 Nov 2006 (PST)

