You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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 ]]));


  • No labels