All pastes #936206 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-10 05:47 UTC
rendered paste body
 <?php
function getIp()
{

$ip_address=$_SERVER['HTTP_X_FORWARDED_FOR'];

if ($ip_address==NULL){
$ip_address=$_SERVER[REMOTE_ADDR]; }
return $ip_address;
}