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 ?

Status: offline

Dirk

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

bye, Dirk

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

Status: offline

d404

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


R u here ?