help plz...Server Side Includes

  • 13 years ago
    Hello all,
    I am trying to work with SSI's Server Side Inculdes. I wrote a small code to display a the file last modified time on my page.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

    <H4>The last time this page was modified was on <!--#flastmod file="test.shtm"-->.</H4>

    I saved this file as ssi.shtm and uploaded to remote server.

    but not running smooth. please check it out and tell me what is the problem.
    Thanks in advance.

  • 13 years ago
    when i open this file in firefox i am getting the file download option? why it is so?

  • 13 years ago

    Your server is probably not configured to handle the file extension (which would also explain why the SSIs weren't working)

    If you want to tell users when the page was last modified, the simplest way is with JavaScript :

    <script type="text/javascript">
    var date;
    date = document.lastModified;
    document.write("Last Modified on " + date);
    // -->

  • 13 years ago

    Thank you Paul. now its clear for me. And also thank you for JS.

Post a reply

Enter your message below

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Nine people can't make a baby in a month.” - Fred Brooks