SSI COMMAND QUESTION

D

Dennis Marks

The flastmod (file last modified) requires a file= or vitrual= as
indicated

<!--#flastmod virtual="/~denmarks/index.html" -->

The SSI variable DOCUMENT_URI contains the virtual path to the current
document.

I would like to do the following

<!--#flastmod virtual="DOCUMENT_URI" -->

but it is not valid. Is there another way to use a variable in place of
a file path.

BTW: I can't use LAST_MODIFIED at the present time due to an ISP
problem causing it to return the wrong date.
 
F

Friendly

On Fri, 30 Apr 2004 Dennis Marks scrawled this disquisition:

The flastmod (file last modified) requires a file= or vitrual= as
indicated

<!--#flastmod virtual="/~denmarks/index.html" -->

The SSI variable DOCUMENT_URI contains the virtual path to the current
document.

I would like to do the following

<!--#flastmod virtual="DOCUMENT_URI" -->

but it is not valid. Is there another way to use a variable in place of
a file path.

BTW: I can't use LAST_MODIFIED at the present time due to an ISP problem
causing it to return the wrong date.


If the server returns the wrong date why wouldn't it return the wrong date
even if you use DOCUMENT_URI ?

I use this on many pages:
<!--#config timefmt="%B %d, %Y" -->
<!--#echo var="LAST_MODIFIED" -->

Two ways to specifically answer your question:

<!--#flastmod virtual="$DOCUMENT_URI" -->

( DOCUMENT_URI is a variable so you preface variables with "$" )

or

<!--#set var="mydocname" value="$DOCUMENT_URI" -->
<!--#flastmod virtual="$mydocname" -->


I have an ISP problem at another site ...doesn't allow SSI

Try javascript:

<script type="text/javascript">
<!--
document.write("Last Mutation:<br>"+document.lastModified); // -->
</script>


FS
 
D

Dennis Marks

If the server returns the wrong date why wouldn't it return the wrong date
even if you use DOCUMENT_URI ?

I use this on many pages:
<!--#config timefmt="%B %d, %Y" -->
<!--#echo var="LAST_MODIFIED" -->

Two ways to specifically answer your question:

<!--#flastmod virtual="$DOCUMENT_URI" -->

( DOCUMENT_URI is a variable so you preface variables with "$" )

or

<!--#set var="mydocname" value="$DOCUMENT_URI" -->
<!--#flastmod virtual="$mydocname" -->
<snip>

LAST_MODIFIED returns the wrong date.
FLASTMOD return the correct date.
I wish I knew why but according to the Webstar web site many people
have problems with LAST_MODIFIED and the ISP is still looking into it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SSI 8
Server Side Include Problem 3
Last Modified Date 9
The original command python line 6
Command-line options in a jar file 17
SSI -- config timefmt and "DATE_LOCAL" 9
Confirm from code behind 0
Tasks 1

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top