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">

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

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

    </body>
    </html>
    I saved this file as ssi.shtm and uploaded to remote server.
    http://www.pmpresume.com/naveen/ssi.shtm

    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);
    // -->
    </script>





  • 13 years ago

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




Post a reply

Enter your message below

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

Contribute

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.

“The question of whether computers can think is just like the question of whether submarines can swim.” - Edsger W. Dijkstra