The
PHP developers, always keen to acknowledge growing needs in the realm of Web application
development and to remedy demands by incorporating new features into the
language, have put together a rather amazing array of network-specific functionality.
This chapter is divided into sections covering the following topics:
DNS, servers, and services: PHP offers a variety of functions capable of retrieving
information about the network internals, DNS, protocols, and Internet addressing
schemes. This section introduces these functions and offers several usage examples.
Sending e-mail with PHP: Sending e-mail via a Web application is undoubtedly
one of the most commonplace features you can find these days, and for good reason.
E-mail remains the Internet??™s killer application and offers an amazingly efficient
means for communicating and maintaining important data and information.
This section explains how to easily send messages via a PHP script. Additionally,
you??™ll learn how to use the PEAR packages Mail and Mail_Mime to facilitate more
complex e-mail dispatches, such as those involving multiple recipients, HTML
formatting, and the inclusion of attachments.
402 CHAPTER 16 ?– NE TWORKING
Common networking tasks: In this section, you??™ll learn how to use PHP to mimic
the tasks commonly carried out by command-line tools, including pinging a
network address, tracing a network connection, scanning a server??™s open ports,
and more.
Pages:
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482