PHP: function file_get_content($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $header = array("User-Agent:Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"); curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); $contents = curl_exec($ch); curl_close($ch); return $contents; } для некоторых сайтов выдает 301 Moved Permanently что поправить в коде? спасибо!