Hi Grego-
vbscript
:
<%=now()% --- will return the time and date
<%=date()% --- will return the date
<%=month()% --- will return the month
<%=weekday(date ())% --- returns the current day
...and here's a simple vbscript file which will pull all server variables for
a client...just put it in your website and oenit in a browser to see what is
available--
<%
Dim zz(55)
Dim zzdef(55)
zz(1)="ALL_HTTP "
zzdef(1)="are all HTTP headers sent by the client. "
zz(2)="ALL_RAW"
zzdef(2)="retri eves all headers in the raw-form. "
zz(3)="APPL_MD_ PATH"
zzdef(3)="retri eves the metabase path. "
zz(4)="APPL_PHY SICAL_PATH"
zzdef(4)="retri eves the physical path corresponding to the metabase path. "
zz(5)="AUTH_PAS SWORD"
zzdef(5)="is the value entered in the client's authentication dialog. "
zz(6)="AUTH_TYP E"
zzdef(6)="is the authentication method that the server uses to validate
users. "
zz(7)="AUTH_USE R"
zzdef(7)="is the raw authenticated user name. "
zz(8)="CERT_COO KIE"
zzdef(8)="is an unique ID for client certificate which is returned as a
string. "
zz(9)="CERT_FLA GS"
zzdef(9)="is where bit0 is set to 1 if the client certificate is present,
and bit1 is set to 1 if the certifying authority of the client certificate
is invalid. "
zz(10)="CERT_IS SUER"
zzdef(10)="is the issuer field of the client certificate. "
zz(11)="CERT_KE YSIZE"
zzdef(11)="is the number of bits in Secure Sockets Layer connection key
size. "
zz(12)="CERT_SE CRETKEYSIZE"
zzdef(12)="is the number of bits in the server certificate private key. "
zz(13)="CERT_SE RIALNUMBER"
zzdef(13)="is the serial number field of the client certificate. "
zz(14)="CERT_SE RVER_ISSUER"
zzdef(14)="is the issuer field of the server certificate. "
zz(15)="CERT_SE RVER_SUBJECT"
zzdef(15)="is the subject field of the server certificate. "
zz(16)="CERT_SU BJECT"
zzdef(16)="is the subject field of the client certificate. "
zz(17)="CONTENT _LENGTH"
zzdef(17)="is the length of the content header as sent by the client. "
zz(18)="CONTENT _TYPE"
zzdef(18)="is the data type of the content. "
zz(19)="GATEWAY _INTERFACE"
zzdef(19)="is the revision of the CGI specification used by the server. "
zz(20)="HTTP_AC CEPT"
zzdef(20)="retu rns the value of the Accept header. "
zz(21)="HTTP_AC CEPT_ENCODING"
zzdef(21)="retu rns the value of the Accept encoding. "
zz(22)="HTTP_AC CEPT_LANGUAGE"
zzdef(22)="retu rns a string that specifies the language to be used for
displaying content. "
zz(23)="HTTP_CO NNECTION"
zzdef(23)="retu rns a string containing information about the connection. "
zz(24)="HTTP_CO OKIE"
zzdef(24)="retu rns the cookie string that was included with the request. "
zz(25)="HTTP_HO ST"
zzdef(25)="retu rns a string containing information about the host. "
zz(26)="HTTP_RE FERER"
zzdef(26)="retu rns a string containing the original URL when a redirect has
occurred. "
zz(27)="HTTP_US ER_AGENT"
zzdef(27)="retu rns a string describing the browser used to send the request.
"
zz(28)="HTTP_UA _PIXELS"
zzdef(28)="retu rns a string detailing the screen resolution of the user
agent. "
zz(29)="HTTP_UA _COLOR"
zzdef(29)="retu rns a string with color information. "
zz(30)="HTTP_UA _OS"
zzdef(30)="retu rns a string stating the operating system of the user agent.
"
zz(31)="HTTP_UA _CPU"
zzdef(31)="retu rns a string stating the processor type used by the user
agent. "
zz(32)="HTTPS"
zzdef(32)="retu rns ON if the request came in through secure channel or OFF
if the request is through a non-secure channel. "
zz(33)="HTTPS_K EYSIZE"
zzdef(33)="is the number of bits in Secure Sockets Layer (SSL) connection
key size. "
zz(34)="HTTPS_S ECRETKEYSIZE"
zzdef(34)="is the number of bits in server certificate private key. "
zz(35)="HTTPS_S ERVER_ISSUER"
zzdef(35)="is the issuer field of the server certificate. "
zz(36)="HTTPS_S ERVER_SUBJECT"
zzdef(36)="is the subject field of the server certificate. "
zz(37)="INSTANC E_ID"
zzdef(37)="is the ID for the Internet Information Server (IIS) instance in
text format. "
zz(38)="INSTANC E_META_PATH"
zzdef(38)="is the metabase path for the instance of Internet Information
Server (IIS) that responds to the request. "
zz(39)="LOCAL_A DDR"
zzdef(39)="retu rns the server address on which the request came in. "
zz(40)="LOGON_U SER"
zzdef(40)="is the Windows account that the user is logged into. "
zz(41)="PATH_IN FO"
zzdef(41)="is extra path information as given by the client. "
zz(42)="PATH_TR ANSLATED"
zzdef(42)="is a translated version of PATH_INFO that takes the path and
performs any necessary virtual-to-physical mapping. "
zz(43)="QUERY_S TRING"
zzdef(43)="is the query information stored in the string following the
question mark (?) in the HTTP request. "
zz(44)="REMOTE_ ADDR"
zzdef(44)="is the Internet Protocol (IP) address of the remote host making
the request. "
zz(45)="REMOTE_ HOST"
zzdef(45)="is the name of the host making the request. "
zz(46)="REMOTE_ USER"
zzdef(46)="is an unmapped user-name string sent in by the user. "
zz(47)="REQUEST _METHOD"
zzdef(47)="is the method used to make the request. "
zz(48)="SCRIPT_ NAME"
zzdef(48)="is a virtual path to the script being executed. "
zz(49)="SERVER_ NAME"
zzdef(49)="is the server's host name, Domain Name Server (DNS) alias, or
Internet Protocol (IP) address. "
zz(50)="SERVER_ PORT"
zzdef(50)="is the port number to which the request was sent. "
zz(51)="SERVER_ PORT_SECURE"
zzdef(51)="is a string that contain a 1 if the request is being handled on
the secure port, otherwise it is 0. "
zz(52)="SERVER_ PROTOCOL"
zzdef(52)="is the name and revision of the request information protocol. "
zz(53)="SERVER_ SOFTWARE"
zzdef(53)="is the name and version of the server software that answers the
request and runs the gateway. "
zz(54)="URL"
zzdef(54)="is the base portion of the URL."
for a=1 to 54
response.write zz(a) & "=" & request.serverv ariables(zz(a)) & "<BR>" &
zzdef(a) & "<BR><BR>"
next
%>
"GregO" <gr*********@gm ail.comwrote in message
news:11******** **************@ b75g2000hsg.goo glegroups.com.. .
I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego