Practical PHP Programming:Networks
From IpbWiki
The Internet is really just one big network, albeit the largest and most convoluted one ever created, and there are a variety of different protocols that allow communication. The most common protocol is HTTP, followed by FTP, but there are literally dozens of others, each with their own specific purpose.
PHP has a number of ways to work over a network – the most common protocols have special functions to make often-used functionality easy, but it is possible to use PHP to write any kind of data over any kind of protocol.
The topics covered in this chapter are:
- What sockets are, and basic socket use
- How to use sockets outside of HTTP
- How to create a basic server using PHP
- Creating a web server
- Helpful network-related functions
- HTTP-specific and FTP-specific functions
- The Curl library
Chapter contents
- 14.1. Practical_PHP_Programming:Sockets
- 14.2. Practical_PHP_Programming:Domain resolution functions
- 14.3. Practical_PHP_Programming:Host and IP resolution
- 14.4. Practical_PHP_Programming:Working with HTTP
- 14.5. Practical_PHP_Programming:Sending emails
- 14.6. Practical_PHP_Programming:Reading email
- 14.7. Practical_PHP_Programming:Dealing with MIME-encoded messages
- 14.8. Practical_PHP_Programming:Managing an IMAP mailbox
- 14.9. Practical_PHP_Programming:Transferring files over FTP
- 14.10. Practical_PHP_Programming:Introduction to Curl
- 14.11. Practical_PHP_Programming:Custom data stream handling
