MDB2 also supports query simulations using the
QuerySim approach.
??? Net_Socket: The Net_Socket package is used to simplify the management of
TCP sockets by offering a generic API for carrying out connections and reading and
writing information between these sockets.
??? Net_SMTP: The Net_SMTP package offers an implementation of SMTP, making it
easy for you to carry out tasks such as connecting to and disconnecting from
SMTP servers, performing SMTP authentication, identifying senders, and
sending mail.
312 CHAPTER 11 ?– PEAR
??? PHPUnit: A unit test is a particular testing methodology for ensuring the proper
operation of a block (or unit) of code, typically classes or function libraries. The
PHPUnit package facilitates the creation, maintenance, and execution of unit
tests by specifying a general set of structural guidelines and a means for automating
testing.
??? XML_Parser: The XML_Parser package offers an easy object-oriented solution for
parsing XML files.
If you haven??™t yet started taking advantage of PEAR, it??™s likely you??™ve spent significant
effort and time repeatedly implementing some of these features. However, this is
just a smattering of what??™s available; take some time to peruse http://pear.php.net/ for
more solutions.
The Power of PEAR: Converting Numeral Formats
The power of PEAR is best demonstrated with a specific example. In particular, I call
attention to a package that exemplifies why you should regularly look to the repository
before attempting to resolve any significant programming task.
Pages:
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387