473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Simple ASP to give IP/time/username?

I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego

Apr 5 '07 #1
5 2821
GregO wrote on 05 apr 2007 in microsoft.public.inetserver.asp.general:
I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
Yes we have.

=======================

If you are interested how to programme such things in ASP vbscript or
jscript, please say so and we can help you with some ASP tutorials.

Or start here:

<http://tutorials.aspfaq.com/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 5 '07 #2
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)="retrieves all headers in the raw-form. "

zz(3)="APPL_MD_PATH"

zzdef(3)="retrieves the metabase path. "

zz(4)="APPL_PHYSICAL_PATH"

zzdef(4)="retrieves the physical path corresponding to the metabase path. "

zz(5)="AUTH_PASSWORD"

zzdef(5)="is the value entered in the client's authentication dialog. "

zz(6)="AUTH_TYPE"

zzdef(6)="is the authentication method that the server uses to validate
users. "

zz(7)="AUTH_USER"

zzdef(7)="is the raw authenticated user name. "

zz(8)="CERT_COOKIE"

zzdef(8)="is an unique ID for client certificate which is returned as a
string. "

zz(9)="CERT_FLAGS"

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_ISSUER"

zzdef(10)="is the issuer field of the client certificate. "

zz(11)="CERT_KEYSIZE"

zzdef(11)="is the number of bits in Secure Sockets Layer connection key
size. "

zz(12)="CERT_SECRETKEYSIZE"

zzdef(12)="is the number of bits in the server certificate private key. "

zz(13)="CERT_SERIALNUMBER"

zzdef(13)="is the serial number field of the client certificate. "

zz(14)="CERT_SERVER_ISSUER"

zzdef(14)="is the issuer field of the server certificate. "

zz(15)="CERT_SERVER_SUBJECT"

zzdef(15)="is the subject field of the server certificate. "

zz(16)="CERT_SUBJECT"

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_ACCEPT"

zzdef(20)="returns the value of the Accept header. "

zz(21)="HTTP_ACCEPT_ENCODING"

zzdef(21)="returns the value of the Accept encoding. "

zz(22)="HTTP_ACCEPT_LANGUAGE"

zzdef(22)="returns a string that specifies the language to be used for
displaying content. "

zz(23)="HTTP_CONNECTION"

zzdef(23)="returns a string containing information about the connection. "

zz(24)="HTTP_COOKIE"

zzdef(24)="returns the cookie string that was included with the request. "

zz(25)="HTTP_HOST"

zzdef(25)="returns a string containing information about the host. "

zz(26)="HTTP_REFERER"

zzdef(26)="returns a string containing the original URL when a redirect has
occurred. "

zz(27)="HTTP_USER_AGENT"

zzdef(27)="returns a string describing the browser used to send the request.
"

zz(28)="HTTP_UA_PIXELS"

zzdef(28)="returns a string detailing the screen resolution of the user
agent. "

zz(29)="HTTP_UA_COLOR"

zzdef(29)="returns a string with color information. "

zz(30)="HTTP_UA_OS"

zzdef(30)="returns a string stating the operating system of the user agent.
"

zz(31)="HTTP_UA_CPU"

zzdef(31)="returns a string stating the processor type used by the user
agent. "

zz(32)="HTTPS"

zzdef(32)="returns ON if the request came in through secure channel or OFF
if the request is through a non-secure channel. "

zz(33)="HTTPS_KEYSIZE"

zzdef(33)="is the number of bits in Secure Sockets Layer (SSL) connection
key size. "

zz(34)="HTTPS_SECRETKEYSIZE"

zzdef(34)="is the number of bits in server certificate private key. "

zz(35)="HTTPS_SERVER_ISSUER"

zzdef(35)="is the issuer field of the server certificate. "

zz(36)="HTTPS_SERVER_SUBJECT"

zzdef(36)="is the subject field of the server certificate. "

zz(37)="INSTANCE_ID"

zzdef(37)="is the ID for the Internet Information Server (IIS) instance in
text format. "

zz(38)="INSTANCE_META_PATH"

zzdef(38)="is the metabase path for the instance of Internet Information
Server (IIS) that responds to the request. "

zz(39)="LOCAL_ADDR"

zzdef(39)="returns the server address on which the request came in. "

zz(40)="LOGON_USER"

zzdef(40)="is the Windows account that the user is logged into. "

zz(41)="PATH_INFO"

zzdef(41)="is extra path information as given by the client. "

zz(42)="PATH_TRANSLATED"

zzdef(42)="is a translated version of PATH_INFO that takes the path and
performs any necessary virtual-to-physical mapping. "

zz(43)="QUERY_STRING"

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.servervariables(zz(a)) & "<BR>" &
zzdef(a) & "<BR><BR>"

next

%>


"GregO" <gr*********@gmail.comwrote in message
news:11**********************@b75g2000hsg.googlegr oups.com...
I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego

Apr 5 '07 #3
Steve Embry wrote on 05 apr 2007 in
microsoft.public.inetserver.asp.general:
Hi Grego-

vbscript:

<%=now()% --- will return the time and date
<%=date()% --- will return the date
<%=month()% --- will return the month
does not. Try: month(now)
<%=weekday(date())% --- returns the current day


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 5 '07 #4
this looks like it will list all variables

http://www.aspkey.net/aspkey/_blog/i...th=3&year=2007

"GregO" <gr*********@gmail.comwrote in message news:11**********************@b75g2000hsg.googlegr oups.com...
>I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego

Apr 5 '07 #5
On 6 Apr, 00:01, "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot
comwrote:
this looks like it will list all variables

http://www.aspkey.net/aspkey/_blog/i...th=3&year=2007

"GregO" <gregorei...@gmail.comwrote in messagenews:11**********************@b75g2000hsg.g ooglegroups.com...
I am new to ASP and would like to know if anyone has a page that will
display username, time, IP
TIA - Grego- Hide quoted text -

- Show quoted text -
Brilliant, for everything I need now. Thanks very much for the links,
info and quick lesson....its not as hard as I thought after all.
Cheers - Grego

Apr 10 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Samantha Smit | last post by:
Hi, I am trying to create a simple asp page that has one command button that updates a database. The URL of the page is like this: http://MyServer.com/Update.asp?UserName=Tom My asp code is...
3
by: Marc Walgren | last post by:
Greetings I have an ASP application to enter reservations. There are multiple user security settings that require some users to have a restricted list of client in a drop list on a form. I...
5
by: calaha | last post by:
Hi all, I have been working with this since last night, and can't quite figure out why it's not working. I have a simple login box form that is set to be my startup form in my Access app (upon...
9
by: Pete | last post by:
Does anyone have a simple html vbscript or other type of snippet they can share that appends a record to a access database via ADO or DAO? I would like to allow users that don't have Microsoft...
3
by: Reney | last post by:
I am using Access Database in my program. The column in the table that I am going to use has date/time value with Medium Time selected. (HH:mm). The program is recording a clock in time to this...
5
by: olaamussah | last post by:
Hi, i just started learning perl which i would use for my uni. project unfortunately. Well, this is a simple user login page i tried to create but i cant get it to work. Can someone please check this...
20
by: cmbcorp | last post by:
Hi, I have been playing around with a simple php login script and im getting an error message when i attempt to log in with the username and password i set in the sql table. The error message is...
3
by: Charlotte | last post by:
Hello, info: I'me a rookie with IIS I have on a WinXP Pro the IIS installed, so I can test some pages before uploading to the hostserver online on the hostserver is a possibility (with the...
15
by: Yew12 | last post by:
I am trying to create a simple login for my webpage, but Im a bit of a novice and cannot see where Im going wrong any help would be much appreciated. I'm using an access database and ODBC. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.