Hello. If you enter a non-existent site file_get_contents gives 500 error.
Question: I have a list of URLs, how can I sort them into workers and not if I get a 500 error?
This design does not help.
$opts = array('http' => array( 'method' => "GET", 'header' => "User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0\r\n" . "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n" . "Accept-Encoding:gzip, deflate\r\n" . "Accept-Language:cs,en-us;q=0.7,en;q=0.3\r\n" . "Connection:keep-alive\r\n" )); $context = stream_context_create($opts); $link=file_get_contents("http://test12321434.ru/",false,$context);