rollin
asked on
last-modified for CGI-output...
I would like a cgi-program to output have a static last-modified date. In Navigator, the last-modified date can be seen by selecting view-page info from the menu.
I tried a meta tag as follows, with no luck:
<META name="Last Modified" content="Sat, 26-Aug-95 21:57:56 GMT">
The CGI-program prints out the entire-page of the resultant-html.
The server I am using is Netscape Enterprise 3.0, on NT and Solaris.
I have heard about server-parsed HTML(SSI) for APACHE but do not know more about it myself.
Rollin Crittendon
I tried a meta tag as follows, with no luck:
<META name="Last Modified" content="Sat, 26-Aug-95 21:57:56 GMT">
The CGI-program prints out the entire-page of the resultant-html.
The server I am using is Netscape Enterprise 3.0, on NT and Solaris.
I have heard about server-parsed HTML(SSI) for APACHE but do not know more about it myself.
Rollin Crittendon
ASKER
Edited text of question
Why go through all of that how about a quick javascript.
just put this at the end of your page and it will do it.
<SCRIPT LANGUAGE="JavaScript">
<!--- Hide script from old browsers.
document.writeln("LastModi fied: " + document.lastModified)
// End the hiding here. -->
</SCRIPT>
I tested this on netscape 3.01
and ie 3.02
just put this at the end of your page and it will do it.
<SCRIPT LANGUAGE="JavaScript">
<!--- Hide script from old browsers.
document.writeln("LastModi
// End the hiding here. -->
</SCRIPT>
I tested this on netscape 3.01
and ie 3.02
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oh, furthermore, you'll have a much easier task of converting the times to GMT accurately if you add hours*3600 to the mtime of the file in epoch seconds, and then convert the new epoch seconds into the required format...
ASKER
Is there a way to get HTML-header information into a page if I write directly from a daemon-program at a port as well?
Also, what server are you working with?
Are you allowed to have SSIs (server parsed HTML)?
There are several possible solutions. Answering these questions will allow for a solution which fits your needs better.