Ну, у вас уже есть большая часть кода, вот что я бы сделал:
<?php
$proxies = array( '192.168.0.2:3128', '192.168.8.2:3128', '192.168.10.2:80' );
// Pick a random proxy:
$proxy_to_use = $proxies[ rand( 0, count( $proxies ) -1 ];
$aContext = array(
'http' => array(
'proxy' => 'tcp://' . $proxy_to_use,
'request_fulluri' => true,
),
);
$cxContext = stream_context_create($aContext);
$sFile = file_get_contents("http://www.google.com", False, $cxContext);
echo $sFile;
?>
Это то, что вы имели в виду?