sneakyimp;10996764 wrote:I believe it's also feasible to set the include_path value in your script.
True, but it would get rather annoying if you constantly had to include that ini_set() statement in all of your PHP files.
Plus, what happens if the path ever changes? Even though you just got done adding that statement to n PHP files, you now get to go back through all n of them and update the path.
sneakyimp;10996764 wrote:Downloading the files manually into your public_html directory is not super-hard
Agreed, and note that this is all that "installing PEAR" really means... just downloading various PHP files into a certain directory. Other than setting your include_path correctly, there really is no "installing" PEAR per sé.
sneakyimp;10996764 wrote:but involves including the file Mail.php (which you can download from pear.php.net) and once that works, you'll see complaints about it trying to include other files, etc. Each time it complains about not finding a file, you have to go to pear.php.net to find the right file and then put it in the right subdirectory of your public_html directory.
You could do that, but that would get quite tedious for some packages.
A much better alternative would be to "install" PEAR yourself; see the PEAR manual for PEAR in hosting environments. PEAR already includes a nice web-based frontend that you can use if you don't have access to the CLI.