O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required