289
CHAPTER
Creating Dynamic Pages 12
Can my include file contain any content I want?
Yes. The include file can be made up of plain HTML,
PHP, or any other content you want. This file is
processed as if it were part of the including
document.
How can I style my included content?
Most of the time, your include ends up in a
document that contains a link to an external style
sheet. Because the include is processed as part of
that page, any CSS rules apply to it.
● When you view the second
file in your Web browser, the
contents of the included file
appear.
6 Type include(“?”);,
replacing? with the path to
the file from Step 3.
7 Type ?>.
8 Save the file into the Web
server’s root directory.
7
6
TIPS