Chapter 7. I/O AND DISK ACCESS
Topics in This Chapter
HTTP Connections
Writing to the Browser
Output Buffering
Environment Variables
Getting Input from Forms
Cookies
File Uploads
PUT Method Requests
Reading and Writing to Files
Sessions
The include and require Functions
Ultimately, in order to be useful, a script must communicate with the outside world. We've seen PHP scripts that send text to the browser and get some information from functions like date. In this chapter we will examine all the ways a PHP script can exchange data without using special interfaces. This includes reading from local disk drives, connecting to remote machines on the Internet, and receiving form input.
PHP is similar to other programming environments—with one notable exception: ...
Get Core PHP Programming: Using PHP to Build Dynamic Web Sites 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.