Подменить адрес так можно? <?php
function get_page_from_ip($url,$ip)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Internet Explorer/6.0 (X11; U; Windows XP SP2; en-US; rv:1.7.2) Gecko/20040804');
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept-Language: en-us,en;q=0.7,de-de;q=0.3',
'Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'X-Forwarded-For: '. $ip));
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$page = curl_exec($ch);
curl_close($ch);
return $page;
}
echo get_page_from_ip('
http://2ip.ru/', '
19.19.19.19');
?>