=================================================================== <? $img_url="https://www.aaa.com"; $options = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: enrn" . "Cookie: foo=barrn" . "User-Agent: Mozilla/5.0 (iPad; U; CPU iPad OS 5_0_1 like Mac OS X; en-us) AppleWebKit/535.1+ (KHTML like Gecko) Version/7.2.0.0 Safari/6533.18.5rn" ) );
$context = stream_context_create($options); $content = file_get_contents($img_url,false,$context);
?>
|