Storm escreveu:
Código:
<?php
ini_set('display_errors', 'on');
ini_set('log_errors', 1);
error_reporting(E_ALL);
header('Content-type: image/png');
function getUrl($url){
$options=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$response = file_get_contents($url, false, stream_context_create($options));
return $response;
}
echo getUrl($_GET['U']);
?>