Loading...
Привет всем прошу писать строга пл теме
<?PHP
//создаём функцию
function get_proxy($url, $proxy) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.0.1) Gecko/2008070208');
curl_setopt($ch, CURLOPT_PROXY, "$proxy");
$ss=curl_exec($ch);
curl_close($ch);
return $ss;
}
//вызываем функцию
$proxy = '193.42.111.11';
$content = get_proxy('http://doman.ru/name/index1.php/',$proxy);
echo $content;

header( 'Refresh: 2; url=http://doman.ru/name/index1.php' );

?>
а почему не работает?
Онлайн: 5
Время:
Gen. 0.0609
(c) ByMAS.RU 2010-2025