1) Download the go-pear.php script from http://pear.php.net/go-pear and save to your WWWROOT folder as go-pear-php
2) Execute the go-pear.php page and accept the default settings
3) Once this has finished it will create an index.php page in your root directory, this is the web based package installer, you will need to edit this file
locate the $pear_user_config variable and ensure it is pointing to
$pear_user_config = 'c:\domains\yourdomainname\wwwroot/pear.conf';
locate the $pear_dir variable and ensure it is pointing to
$pear_dir = 'C:\Domains\mydomain.com\wwwroot/PEAR';
4) Load index.php in your browser to run the PEAR Package installer and install the packages you need
5) When including your PEAR modules in code, you will need to add PEAR/ to the front of the include statement eg use include('PEAR/Mail/mimeDecode.php'); instead of include('Mail/mimeDecode.php');
Once you have installed the packages you require we recommend deleting or obfuscating the PEAR Package Manager index.php file.

Sign In
Register
Help
MultiQuote