quelqu'un saurait-il comment afficher la date de derniere modification d'une page ? Mais ATTENTION ! Pas celle de la page en cours (document.last.modified) mais celle d'un fichier que l'on appelle avec la fonction include ?
<%
function ExamineFolders(ByRef objFolder, ByVal filePath)
Dim Folder, File, strI
For each Folder in objFolder.SubFolders
ExamineFolders Folder, (filePath&"/"&Folder.Name)
Next
for Each File in objFolder.Files
response.write(filePath & "/" &File.Name & " " & File.DateLastModified & "
")
Next
end function
IF IsObject(Session("DBConnexion")) then
Set OBJdbConnection = Session("DBConnexion")
else
Set OBJdbConnection = Server.CreateObject("ADODB.Connection")
OBJdbConnection.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("") & "\les-scouts-ch.mdb")
Set Session("DBConnexion")=OBJdbConnection
end if
%>
<html>
<head></head>
<%
Dim objFS, objRootFolder, strVRoot
strVRoot = Server.MapPath("/")
Set objFS=Server.CreateObject("Scripting.FileSystemObject")
Set objRootFolder=objFS.GetFolder(strVRoot)
ExamineFolders objRootFolder, ""
Set objRootFolder = Nothing
Set objFS = Nothing
%>