debug php file_get_contents($url)
there is one special variable available $http_response_header.
the output is the header array reply by the server
$r = file_get_contents($url);
var_dump($http_response_header);
there is one special variable available $http_response_header.
the output is the header array reply by the server
$r = file_get_contents($url);
var_dump($http_response_header);