How do I use Server Side Includes?

Use the #include directive to include files in your current html documents. The "file=" or "virtual=" elements can both be used.

For example, let's say you were trying to include doc1.html in doc2.html. Both documents exist in a directory called "docdir". Below is the code that you would insert in doc2.html.

File Include Method:

<!--#include file="doc1.html"-->

Virtual Include Method:

<!--#include virtual="/docdir/doc1.html"-->

  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

Where is my cgi-bin?

A "cgi-bin" has been created for you inside your public_html directory. You can execute CGI/Perl...

How do I tell the web server to parse my files that include Server Side Includes?

Make sure the names of your files end with ".shtml" or ".shtm". For example:index.shtml or...

What should the file permissions of my CGI/Perl scripts be?

Your CGI/Perl scripts should be chmoded to 755 or rwxr-xr-x. Your CGI/Perl scripts will produce...

What is the location of sendmail?

The location on sendmail is:/usr/sbin/sendmail

What is the location of the Perl?

The location of perl is:/usr/bin/perl