Prev | Current Page 381 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

This output is
pretty long, so it won??™t be reproduced here. Instead you??™ll be introduced to just the
most commonly used commands. If you??™re interested in learning more about one of
the commands not covered in the remainder of this chapter, execute that command
in the Package Manager, supplying the help parameter like so:
%>pear help
?– Tip If PEAR doesn??™t execute because the command is not found, you need to add the executable
directory to your system path.
Viewing an Installed PEAR Package
Viewing the packages installed on your machine is simple; just execute the following:
%>pear list
Here??™s some sample output:
CHAPTER 11 ?–  PEAR 317
Installed packages:
===================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
HTML_AJAX 0.4.0 alpha
Mail 1.1.10 stable
Net_SMTP 1.2.8 stable
Net_Socket 1.0.6 stable
XML_Parser 1.2.7 stable
XML_RPC 1.2.2 stable
Learning More About an Installed PEAR Package
The output in the preceding section indicates that eight packages are installed on the
server in question. However, this information is quite rudimentary and really doesn??™t
provide anything more than the package name and version. To learn more about a
package, execute the info command, passing it the package name. For example, you
would execute the following command to learn more about the Console_Getopt package:
%>pear info Console_Getopt
Here??™s an example of output from this command:
ABOUT CONSOLE_GETOPT-1.


Pages:
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393