Click to See Complete Forum and Search --> : IP Address script problems - HELP!!
nasos
08-17-2003, 04:59 AM
I want to use this IP Address script but it dosent work on my server.
This is the script:
http://javascript.internet.com/user-details/ip-address.html
And this is the error. http://cctv.3a-ns.com
please help me with this problem.
Thanks Nasos.
xataku_nakusute
08-17-2003, 05:52 AM
well, in the instructions for the IP script, it mentions that you "may need to rename the page with the .shtml extension because the script uses SSI..."
so, you should see if your server provides for support of SSI(server-side includes) or not
nasos
08-17-2003, 06:45 AM
Itried that too and I get a diferent error.
http://cctv.3a-ns.com/ip_test.html
can you figure it out? I noticed one think though that the :
var ip = '<!--#echo var="REMOTE_ADDR"-->';
is getting evaluated from the server now.
nasos
08-17-2003, 08:14 AM
Thanks for the help.
Problem fixed. I had to remove the coments.
http://cctv.3a-ns.com/ip_test.html
thanks for all your help on my first project.
Now the second part: how can I from the same page having now the ip get the host name?
Khalid Ali
08-17-2003, 08:20 AM
Thats not a javascript question.You were better of posting your question in the general /AP or PHP forums...
however answer to your question does vary in most of the languages.the syntax prety much is different in all langauges except C# and java since C# is a bad copy of Java)....:D