Dear PHP Experts,
I'm trying to determine if there is some environment variable, or perhaps a
built-in PHP function or other simple method, which will allow me to
determine the path to a server's PHP Pear installation (see
http://pear.php.net for info).
For example, on Windows the Pear path might be something like this:
c:\php\PEAR\
The reason that this is needed is that Pear comes with zipping tools that I
am using to zip a bunch of images, but it appears that I need to call Pear
using the exact path to make this work. The script will be used on many
different servers, so I need to automate the path detection in a way that is
cross-platform compatible.
Thanks,
Darren