Q&A

Q1: Isn’t it the case that the “ad server” in this chapter wouldn’t work in the real world?
A1: It will run and serve up random ads, but it won’t work as a real ad server, for one reason, which is that it doesn’t print the links that will be included in the HTML on the page. Ads require not only an image, but also a link that the ad will click through to. Most ad servers also provide functionality that enables the administrator to make sure that each ad is shown the required number of times and to divide the ads up into campaigns. Obviously the script in this chapter is much simpler than that.
Q2: I hate those images they use to track your activities on the Web. Why did you explain how to create them?
A2: I hate them too, but I think it’s ...

Get Sams Teach Yourself CGI in 24 Hours, Second 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.