kendimin kullandığı fonksiyonu yayınlıyorum

$proxy dizisindeki 1.1.1.1 - 2.2.2.2 ve 3.3.3.3 ler proxy ip => den sonrakileri ise onlara ait proxy portları ona göre dizi yaparsın..

function getData($site)
{
  	$proxy = array(
		1=> array(
			'1.1.1.1',
			'80'
		),
		
		2=> array(
			'2.2.2.2',
			'8080'
		),
		
		3=> array(
			'3.3.3.3',
			'3128'
		)
	);
	
    shuffle($proxy);
    
    $ch = curl_init();
    curl_setopt($ch,CURLOPT_URL,$site);
    curl_setopt($ch,CURLOPT_PROXY,$proxy[0][0]);
    curl_setopt($ch,CURLOPT_PROXYPORT,$proxy[0][1]);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch,CURLOPT_USERAGENT,$_SERVER['HTTP_USER_AGENT']);
    $sonuc = curl_exec($ch);
    curl_close($ch);
    
    return $sonuc;
}

$veri = getData('http://www.ysfkc.com/index.php');

echo htmlspecialchars($veri);
göründüğü gibi basit...