|
|
|
|
![]() ![]() |
Apr 5 2006, 03:36 AM
Post
#1
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 175 Joined: 10-September 05 Member No.: 11,692 |
I am running a Web Chat and need to get this to display the User IP to them, but this code isnt working.
CODE <PARAM NAME="welcomemessage" VALUE="<?php echo $_SERVER['REMOTE_SERVER'];" has been logged. Chat powered by GCN"> Any help would be extremly grateful. Thank you This post has been edited by mayank: Apr 5 2006, 04:10 AM |
|
|
|
Apr 5 2006, 03:56 AM
Post
#2
|
|
|
Hidden Secrets can't be told threw just words. One must feel what the other feels to truely understand... ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,522 Joined: 8-January 06 From: Sacramento California Member No.: 16,756 |
the link to the place would as well help everyone with this
|
|
|
|
Apr 5 2006, 04:03 AM
Post
#3
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
I think you want $_SERVER['REMOTE_ADDR'] instead.
|
|
|
|
Apr 5 2006, 04:14 AM
Post
#4
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 372 Joined: 14-October 04 Member No.: 1,736 |
Yes, you need to use $_SERVER['REMOTE_ADDR'] instead, and you forgot the ending ?> at the end. Your actual code should be:
CODE <PARAM NAME="welcomemessage" VALUE="<?php echo $_SERVER['REMOTE_ADDR']; ?> has been logged. Chat powered by GCN"> That should give you what you're looking for (I hope, anyway). You also had an extra quote in that right after the semicolon (which I corrected in the code). |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 09:29 PM |