Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 05:45 pm EST

Geeklog Forums

help in real IP ... i can't make it work !


Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
confused
Text Formatted Code

function phpblock_emn()
{
$retval .="
<?php
if (getenv('HTTP_X_FORWARDED_FOR'));
 {
     $ip = getenv('HTTP_X_FORWARDED_FOR');
     if ($ip == '')
     {
         $ip = getenv('REMOTE_ADDR');
     }
 }
 else
 {
     $ip = getenv('REMOTE_ADDR');
 }  
?>
";
return $retval;
}

 


And it is passing code as what is it on . nothing print out for me


ant help ?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Get rid of those &lt;?php ... ?&gt; in the middle of your code.

bye, Dirk
 Quote

Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
blah
Quote by Dirk: Get rid of those in the middle of your code.

bye, Dirk



i did this already ! but nothing go out , and when i view the source i got the hole code show under the title of block
 Quote

Status: offline

d404

Forum User
Chatty
Registered: 01/21/05
Posts: 41
Dirk


R u here ?
 Quote

All times are EST. The time is now 05:45 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content