PHP PEAR:
We have PHP PEAR installed on our servers with common packages. PEAR (stands for The PHP Extension and Application Repository) gives you access to a library of modules that you could use in your PHP scripts to save coding time. You could see all of the available PEAR modules at http://pear.php.net/packages.php.

How to use PHP PEAR modules in your PHP application:

Windows Servers:

For example if you were going to use the PEAR Mail module, you would just add the following at the top of your PHP page:
PHP Code:
include_once('Mail.php'); 
Or for Mail_mime you would do:
PHP Code:
include_once('Mail/mime.php'); 
If you need to use a module that is not installed on our servers, contact our support team, and they may be able to install it on the server for you.

Linux Servers:

On Linux servers you could manage your own PEAR modules.
1. Login into your cPanel Account
2. Under Software/Services, click on "PHP PEAR Configuration"
3. Here you could view the system-wide installed PEAR packages or install specific packages.

If a module is installed system wide, you could access it it by just including it.
For example:
PHP Code:
include_once('HTML/QuickForm.php'); 
For modules that you install for your site there are a couple methods of using them.

Include with full path
Towards the top of the PHP PEAR Configuration page you will see a section that is simliar to this:
Location of Your PHP Extension(s) and Application(s)
Code:
Path: /home/username/php
You could use your module by including with this path. In the example above you, if you installed the Mail module, to use it, you would do the following:
PHP Code:
include_once('/home/username/php/Mail.php'); 
Set the PHP include path
Alternatively, you could set the include path for your PHP application and access it like you access the system-wide modules. To do this, you would need to add the following to your page:

PHP Code:
set_include_path('/usr/lib/php:/usr/local/lib/php:/home/username/php'); 
(Notice that the last part of this line is the path listed on your PHP PEAR configuration page)

Now to use your installed mail module you could just use:
PHP Code:
include_once('Mail.php'); 
--
Max