Share this Page URL
Help

Chapter 20. Web Page Doodads You Should ... > Using Server-Side Includes to Insert... - Pg. 232

Web Page Doodads You Should Know About 232 Remember that SSI requires the services of a server to work properly. If you view your page with the include tag on your own computer, you won't see the inserted file. To use SSI requires two steps: 1. 2. Create a new text file and use it to insert the tags and text that you want to insert into your pages. When you're done, be sure to upload this file to your web host directory. In each HTML file that you want the text file inserted, add the special SSI tag that I've been blathering on about: <!--#include file="TextFileName"--> This is called the SSI include tag, and you need to replace TextFileName with the name of the text file from Step 1. Remember, as well, to position this tag exactly where you want the text file's contents to appear. Let's give an example a whirl. Here are the contents of a text file named footer.txt (which you'll find on the CD in this book): <HR> <ADDRESS> This page is Copyright &copy; 200?, your-name-here<BR> company-name-here<BR> company-address-here<BR> Phone: (###) ###-####<BR> Fax: (###) ###-####<BR> Email: <A HREF="mailto:your-email-address-here">your-email-address-here</A>. </ADDRESS> <P>