file_get_contents() gets no content from HTTPS URL


You can resolve above issue by adding additional parameters not to check SSL certificate in HTTPS protocol as following:

$result = file_get_contents( $url, false, stream_context_create([ "ssl" => [ "verify_peer"=>false, "verify_peer_name"=>false ]]));