PEAR

From Ubiquity Web Hosting Wiki

Jump to: navigation, search

PEAR is a tool that manages an absurd # of class libraries for PHP. Using PEAR libraries, a PHP developer has pretty much every piece of code ever thought of already written for them.


Contents

How to use PEAR

InterWorx Environment

Include the PEAR class in your file using this simple syntax.

require_once("/usr/share/pear/MODULE-NAME.php");      


cPanel Environment

To enable the initial pear configuration, choose Software / Services > PHP PEAR packages from the menu in cPanel. Once complete, you can include PEAR libraries using the following syntax.

require_once("/home/yourusername/php/MODULE-NAME.php");      


Plesk Environment

Include the PEAR class in your file using this simple syntax.

require_once("/usr/share/pear/MODULE-NAME.php");
Personal tools