C'è un po' di confusione: scritto com'è lo script gira sul client, mentre tu vuoi far vedere le immagini che si trovano sul server.
Non l'ho provata, ma prova così:
Codice PHP:
<%
sub GalleriaImmagini()
Dim dirname, fso, folder, filez, FileCount
dirname="/images/Biografia/"
Set fso = server.CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(server.mappath(dirname))
Set filez = folder.Files
FileCount = folder.Files.Count
response.write FileCount
end sub
%>
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"
marginwidth="0" marginheight="0"
bgcolor="#80A098">
<div style="position: absolute; width: 271px; height: 19px; z-index: 7; left: 147px; top: -38px; border-style: solid; border-width: 2px" id="livello8">
<p align="center">[b]GALLERIAIMMAGINI[/b]
</div>
<div style="border-style:outset; position: absolute; width: 509px; height: 417px; z-index: 8; left: 23px; top: 35px" id="livello9">
<%
GalleriaImmagini()
%>
</div>
</body>
</html>