My Favorite Areas of SSI:
Dates and
Times | Modular Web
Weaving! | Even
More... | |
---|
instead of having to type the HTML for that in over and over, though, I
can just save the above text as something, and attach it with SSI. Say I
called it "footer." The SSI call would be: <!--#include
file="footer"-->. Note that here, file is looking at the relative
path, so footer has to be in the same directory, or you would have to
include the pathname, ..'s and all. If you just want the footer sitting
in one place, you could say <!--#include virtual="/footer"-->, where
virtual is looking at the absolute path. So for a footer for me, on this
machine, I'd have to say virtual="/~dylan/footer", as absolute paths look
right to your server's root directory. Is this confusing you? Try
scouring the web, or asking your local webmaster for pointers.
I hope you found this page to be interesting and/or helpful! Seeya later,
and enjoy your web weaving!!
Dylan Humphrey
where SOMETHING can be DATE_LOCAL if you want the current date and/or
time, or LAST_MODIFIED if you want the last modified date/time. So the
standard last modified call, when you type it in, looks like this:
This still leaves you with a problem, though. You still may want to say
something other than what your server returns as the default. for this,
you need a new call, config. This call will configure your date
and time settings for any echo call. You can have multiple configs, too;
each echo just looks backwards in the document until it finds a config,
and it uses that one. So to make my last modified bit look better, I'd
say this:
DON'T FORGET THE QUOTATION MARKS! And those % thingees are the parameters
you are setting. Here is a list of useful ones:
Good luck! I hope this makes your web-weaving a little bit easier!
Dylan Humphrey
Swarthmore College Class of
1998
Dylan Humphrey | dylan@sccs.swarthmore.edu
Dylan Humphrey
Swarthmore College Class of
1998
Swarthmore College Class of
1998