Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

last modified script

Status
Not open for further replies.

schroom

Programmer
Joined
Oct 25, 2001
Messages
4
Location
CA
Does anyone know of a good last modified or updated cfscript?
 
Try:
Code:
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
   document.write(document.lastModified);
</SCRIPT>
You can give that a try, but I think it will change every time the page is accessed. Kevin
slanek@ssd.fsi.com
 
if you need to return last modified info for some graphic file, you can use juka manner's CFX_GIFGD custom tag; tag will return all relevant info about the image such as:

File: c:\cfx\.\cfx_gifgd\cfx.gif
Type: gif
Created: 1997-07-07 20:36:20
Accessed: 1997-07-09 10:57:08
Modified: 1997-07-09 10:56:30
Size: 3398 bytes
Dimensions: (212 x 56)
Colors: 182
Tranparent color index: 181
Interlaced: TRUE
you can download the tag here:

or u can use cfdirectory/action=list tag; cfdirectory returns five result columns you can reference in your CFOUTPUT:

Name - Directory entry name.
Size - Size of directory entry.
Type - File type: File or Dir for File or Directory.
DateLastModified - Date an entry was last modified.
Attributes - File attributes, if applicable.
Mode - (Solaris and HP-UX only) The octal value representing the permissions setting for the specified directory. Sylvano
dsylvano@hotmail.com

&quot;every and each day when I learn something new is a small victory...&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top