520Part IIIAdvanced Features and TechniquesRemember that if you (Remote web server)
520Part IIIAdvanced Features and TechniquesRemember that if you just want to use PEAR s DB, Net_Socket, Net_SMTP, Mail, XML_Parser, or phpUnitmodules, you do not need to install the PEAR Package Manageror any packages! These packages, which are collectively referred to as the PEAR FoundationClasses, are bundled with PHP. Installing PEAR Package Manager on LinuxOn a Linux machine with PHP4.3 or a later version installed, there s no work to be done. ThePEAR Package Manager is by default already in place with your PHP distribution, and avail- able for use. If you re running an older version of PHP under Linux, you ll need to install the PEAR PackageManager by means of a two-part command. The command looks like this: $ lynx -source http://go-pear.org/ | phpThat command opens up the specified URL (which you can examine yourself through an ordi- nary Web browser) with Lynx, a text-only HTTP client (certain Linux distributions have simi- larly functional programs with different names, such as linksunder Red Hat Linux). The URLcontains text that defines a PHP program. The command line pipes that text to the PHPengine, thus allowing it to be interpreted. Installing PEAR Package Manager on WindowsOn a Microsoft Windows machine with PHP4.3 or newer installed, there is a file called go-pear.batin the PHP home directory (typically C:php). Before you can use the PEARPackage Manager, you must run go-pear.batand let it make some configuration changes to your system. Here s what it looks like when go-pear.batruns: C:PHP>go-pear.batWelcome to go-pear! Go-pear will install the pear command and all the files neededby it. This command is your tool for PEAR installation andmaintenance. Go-pear also lets you download and install the PEAR packagesbundled with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, phpUnit. If you wish to abort, press Control-C now, or press Enter tocontinue: Following the directions in the code, we press Enterto continue and get the following: HTTP proxy (http://user:password@proxy.myhost.com:port), orEnter for none:: As we have no proxy, we hit Enteragain and get the following: Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front ofTip32
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services