Chapter 23. Networking Functions

This chapter contains a mixed bag of networking-related functions. The extension contains functions to query DNS resource records, activate and deactivate PHP 3’s internal debugger, and read from and write to sockets. There are also functions to convert or look up domain name, IP address, protocol, and service information. See the following list of functions grouped by use.

Warning:

When using the PHP binaries for Windows that are available from http://php.net/, the getprotobyname(), getprotobynumber(), getservbyport(), and getservbyname() may not function as anticipated under Windows 2000.

DNS resource records:

  • checkdnsrr()

  • getmxrr()

Domain name/IP address lookups and conversions:

  • gethostbyaddr()

  • gethostbyname() ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.