|
-
What Java-classes are available (or can be made available) in JavaScript?
I'm asking because i found a little script for
getting the client's IP printed.
But it didnt work because it used a Java class.
( i think )
But if I'm totally wrong.. How do I get JavaScript to find
the clients IP?
Val
-
Javascript cannot, AFAIK, get the client IP address on its own. You need to use Java or a server-side language such as SSI/PHP for that.
Adam
-
How do I do it in php then?
Didnt find a nice function at www.php.net...
Help me out?
-
It's a predefined variable, actually:
<? echo $_SERVER['REMOTE_ADDR'] ?>
(See the manual)
Adam
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks