Web Hosting Talk







View Full Version : IP Script


PixelOptik
11-25-2002, 05:29 PM
Hello,

I was wondering if anyone knew the script to post a user's IP address?

to look something like : Hello user, your ip is _______. (along with other browser information)

Thanks!

p.s. Sorry if I posted this question in the wrong place :D

Angel78
11-25-2002, 06:06 PM
http://www.jsmadeeasy.com/javascripts/User%20info/list.htm

check this :)

PixelOptik
11-25-2002, 06:09 PM
thanks! :) I'll check it out

PixelOptik
11-25-2002, 06:20 PM
I keep getting an error and the script doesnt show up :rolleyes:

Centralized
11-25-2002, 06:34 PM
You can also use an SSI call.
http://www.bignosebird.com/sdocs/echo.shtml

<!--#echo var="REMOTE_ADDR" -->

johnallen
11-25-2002, 06:47 PM
Or use php.

echo $REMOTE_ADDR

PixelOptik
11-25-2002, 07:03 PM
i've been trying to use javascript to get the user ip, but when I do a search most are for Netscape not IE.

PixelOptik
11-25-2002, 07:05 PM
since php was mentioned, what is a good php tutorial site?

Zoltrix
11-25-2002, 07:08 PM
Copy this into your HTML file, You can add HTML outside of the php tags "?> and <?"


<? php
echo $REMOTE_ADDR;
?>

Hope that helps:)

PixelOptik
11-25-2002, 08:27 PM
thanks! :)

Zoltrix
11-25-2002, 08:46 PM
Just Here to help ;)