|
|
| Author |
Message |
G-Bomb
Joined: 29 Feb 2004 Posts: 73
|
Posted: Mon Mar 01, 2004 10:35 pm Post subject: Get a visitor's IP address. (ASP) |
|
|
| Code: | <%@ Language="VBScript" %>
<HTML>
<BODY>
Your IP address is <%= Request.ServerVariables("REMOTE_HOST") %>
</BODY>
</HTML> |
|
|
| Back to top |
|
 |
tcach
Joined: 01 Mar 2004 Posts: 35 Location: pakistan
|
Posted: Tue Mar 02, 2004 12:20 pm Post subject: |
|
|
I have tried this script and i think its non funtional.
may be that there is a problem with where to place what. could u explain this please. _________________ You dont have a paypal account . dont worry try this
Get an account here its free for now |
|
| Back to top |
|
 |
i03m
Joined: 02 Mar 2004 Posts: 6
|
Posted: Tue Mar 02, 2004 12:47 pm Post subject: |
|
|
| tcach wrote: | I have tried this script and i think its non funtional.
may be that there is a problem with where to place what. could u explain this please. |
I think so.... |
|
| Back to top |
|
 |
aliem
Joined: 03 Mar 2004 Posts: 5 Location: Italy ... PISA
|
Posted: Wed Mar 03, 2004 2:10 am Post subject: Try using the powerfull PHP!!! |
|
|
This is cool:
| Code: |
<?php
$ip = getenv("REMOTE_ADDR"); // get the ip number of the user
print "Hello! This is your IP Address : $ip"
?>
|
You can also save a log in a file... (next post when I will implement the function ;D ) |
|
| Back to top |
|
 |
|