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

Posted on: 23/03/06 07:45pm
By: d404

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 ?

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

Posted on: 24/03/06 04:05am
By: Dirk

Get rid of those &lt;?php ... ?&gt; in the middle of your code.

bye, Dirk

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

Posted on: 25/03/06 12:22pm
By: d404

[QUOTE BY= Dirk] Get rid of those in the middle of your code.

bye, Dirk[/QUOTE]


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

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

Posted on: 26/03/06 08:06pm
By: d404

Dirk


R u here ?

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=65588