Writing to the Browser
Getting Input from Forms
PUT Method Requests
Reading and Writing to Files
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: ...