The PHP Extension and Application Repository (or PEAR for short) contains re-usable code. The PEAR core has been preinstalled (Module ZeroXI_pear_1_0_0) this page covers the PEAR Web Frontend Open PEAR Web FrontendYou can access the web-front-end at any time using either of the following methods:
Using PEAR FrontendOpen the PEAR front-end using one of the methods explaind above. Installing PEAR packages is very easy. To confirm our PEAR installation is working and to demonstrate how to install packages, we will be using a package named HTML_QuickForm Update the Channel Management system
Downloading modules
Form - Test ScriptCreate a new text file named form.php with the following content and save to folder UniServerZ\www <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Pear HTML_QuickForm test</title> </head> <body> <?php require_once "HTML/QuickForm.php"; $form = new HTML_QuickForm('frmTest', 'get'); $form->addElement('header', 'MyHeader', 'Testing QuickForm'); $form->addElement('text', 'MyTextBox', 'What is your name?'); $form->addElement('reset', 'btnClear', 'Clear'); $form->addElement('submit', 'btnSubmit', 'Submit'); $form->display(); ?> </body> </html>
Where to nextBackground information for installing Pear: PHP - PEAR Auto Install go-pear - This page covers using go-pear that automats the installation process. PHP - PEAR Manual Install - This page covers manual PEAR installation. |