Workshop

Quiz

1: Which server variable might give you the URL of the referring page?
2: Why can you not rely on the $_SERVER['REMOTE_ADDR'] variable to track an individual user across multiple visits to your script?
3: What does HTTP stand for?
4: Which client header line tells the server about the browser that is making the request?
5: What does the server response code 404 mean?
6: Without making your own network connection, which function might you use to access a Web page on a remote server?
7: Given an IP address, which function could you use to get a hostname?
8: Which function would you use to make a network connection?
9: Which PHP function would you use to send an email?

Answers

A1: You can often find the URL of the referring page ...

Get Sams Teach Yourself PHP in 24 Hours, Third Edition 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.