On 9/4/2007 8:17 AM, Helpful person wrote:
I have written my web site using Microsoft FrontPage and have decided
to rewrite it in strict xhtml. I am very excited about how easy this
seems to be, how clean the code is and the versatility of the
language, I have one question at present.
I have found out how to use includes using
<!--#include virtual="anyfil ehere" -->
My question: Is the code inserted exactly as in the include file in
the place where the include is requested or are there some surprises?
www.richardfisher.com
I do all my pages in HTML 4.01. I do them manually in Wordpad, and the
HTML just seems to flow out of my fingertips and into my keyboard. So I
can't help you with XHMTL.
However, I do use SSIs. I just now determined that your server is
indeed Apache, which does support SSIs.
I suggest that the files you wish to include not have .html or .htm at
the end (file extensions). Then, Apache will not try to serve them as
Web pages if they are requested by mistake.
The Web page that contains the <!--#include virtual="anyfil ehere" -->
declaration needs to be executable for Apache to perform the SSI
operation.
Apache will take the cited file and insert it as if you had manually
inserted it before uploading the Web page to the Web server. A user
will not be able to determine that this has happened except that the
time-stamp on the Web page will equal the time at which Apache served
it, not the time when it was uploaded to the server or when it was last
modified.
--
David E. Ross
<http://www.rossde.com/>.
Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997