|
||||||
| Javascript Javascript Tutorials and Code |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Always good to have alternatives to ipchicken, ha ha.
__________________
Funny Stories and Humorous Pictures |
|
|||||
|
Interesting, the only thing is your server has to have SSI enabled for this to work.
Is their anyway to do this if SSI isn't enabled? I do have SSI enabled but I'm just curious.
__________________
Success is the ability to go from failure to failure without losing your enthusiasm. ~ Winston Churchill |
|
|||||
|
My server I needed to enable SSI first but it was possible.
Though looking at the code, I don't think you need the javascript do you? Couldn't you just do this: Code:
<html> <head> </head> <body> <!--#echo var="REMOTE_ADDR"--> </body> </html> ![]()
__________________
Success is the ability to go from failure to failure without losing your enthusiasm. ~ Winston Churchill |
| Sponsored Links |
|
|
|
|||||
|
It's true that you don't need Javascript at all, but the advantage of using Javascript in this situation is that you can save the result in a variable, and eventually use it for various string operations.
About your IP: If you ran the script locally, it will most likely return localhost (127.0.0.1). |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check if a file exists? | Lop | Delphi/Python | 3 | 01-07-2007 12:54 AM |
| How Do I check my HTML? | skilletsteve | HTML Programming | 1 | 09-13-2006 11:12 AM |
| Check if a file exists | Lop | C and C++ | 4 | 08-07-2006 10:03 PM |
| Best way to check if an object is null? | dirkfirst | Managed C++ | 0 | 08-01-2006 07:29 AM |
| Check if a URL Exists | Chan | PHP Forum | 1 | 07-13-2006 12:54 PM |