What Are Server-Side Includes?

A Web server normally doesn't look at the contents of the files that it passes along to browsers. It checks security—that is, it makes sure that the caller has the right to see the contents of the files—but otherwise it just hands over the file.

A Web page is often more than one document. The most common addition is an inline graphic or two, plus a background graphic. When a browser first receives a page, it scans the page, determines whether more parts exist, and sends out requests for the remaining parts. This scanning and interpretation process is called parsing, and it normally happens on the client's side of the connection.

Under certain circumstances, though, you can instruct the server to parse the document ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 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.