$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://example.com/pagina-che-vuoi-recuperare');
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'User agent inventato');
$ch_data =...