473,761 Members | 5,839 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2839
GregO wrote on 05 apr 2007 in microsoft.publi c.inetserver.as p.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.aspfa q.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)="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

Apr 5 '07 #3
Steve Embry wrote on 05 apr 2007 in
microsoft.publi c.inetserver.as p.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*********@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

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...@gm ail.comwrote in messagenews:11* *************** ******@b75g2000 hsg.googlegroup s.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
4757
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 like this: %@ Language=VBScript %> <!--#include file="includes/openconnection.asp"-->
3
2079
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 constructed the following function: CREATE FUNCTION (@pUserId int)
5
2637
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 successful authentication, it opens the Switchboard). All it does is get the username and password, pull up a recordeset of the usernames and sets the UserId to be used throughout the session. The table Userlist is a SQL 2000 linked table. I can...
9
12336
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 Access a way of adding records to a access database from a simple web page. I don't want to have to setup ODBC or anything like that I just want to put the web page on the network for anyone to access. Most of the users would use the local access...
3
11731
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 field, which is the time when the entry is made. If you check the database, it shows the correct time in the correct format. But when you are calling it with a dataset and showing with a datagrid, it doesn't show the time value but it always shows...
5
5743
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 out. Corrections would be highly appreciated. The code: use strict; use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use DBI; $CGI::POST_MAX = 1024 * 1000; sub print_login_form($);
20
2381
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 as follows: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/greenpos/public_html/test4/checklogin.php on line 28 Wrong Username or Password The code: <?php $host="localhost"; // Host name
3
2483
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 program PLESK) to make a directory secure (to access a page in that directory, you have to give a username and a
15
7998
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 code I have got is below; <?php $tbl_name="tblCustomer";
0
10136
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5266
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3509
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.