Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Php Code Fix Required, URGENT
Jesse
post 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

Notice from mayank:
Inserted the code in CODES tag


This post has been edited by mayank: Apr 5 2006, 04:10 AM
Go to the top of the page
 
+Quote Post
Albus Dumbledore
post 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
Go to the top of the page
 
+Quote Post
Tyssen
post 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.
Go to the top of the page
 
+Quote Post
Hamtaro
post 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).
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Website Review Required,(6)
  2. Video Play Like Youtube(4)
  3. Simple C File Handling In Action(4)
  4. How do you test your php code(80)
  5. Davinci Code(5)
  6. An Uncrackable Code!(2)
  7. Add Flashing Inbox To Invisionfree Forum(2)
  8. Ms Word Document Sample Required(0)
  9. Create Dynamic Html/php Pages Using Simple Vb.net Code(1)
  10. Help Regarding Phpbb2(5)
  11. Runescape 2 Private Server: Code/guide 1(11)
  12. Your First Autoit(4)
  13. Whats The Best Code?(32)
  14. Da Vinci Code(16)
  15. Syntax Highlighting For Code(4)
  1. Each And Every Nokia Code For Your Mobile(7)
  2. Rpg Code And Rpg Toolkit(10)
  3. Html Tag For A Code Box(4)
  4. Redirect Code Help(8)
  5. Why Doesn't This Code Work On Computinghost?(2)
  6. How Do I Code A Design?(6)
  7. Gimp Abstract Signature Tutorial(9)
  8. Html Code Tester. Online Script(15)
  9. Mysql-essential-5.0.51 Installion Problem(2)
  10. Myspace Music Player(10)
  11. Mozilla: Firefox Plugin Shipped With Malicious Code(3)
  12. Wap Source Code Viewer(4)
  13. Php Code?(12)
  14. Create Table - Mysql Code - Help(1)
  15. Php Source Code Unveiled In Browser?(7)


 



- Lo-Fi Version Time is now: 11th October 2008 - 09:29 PM