Problem with the file_get_contents ()

0

I'm trying to get through the file_get_contents() page of Google so I'm using xampp here I leave my code PHP :

 <?php
$arrContextOptions=array("ssl"=>array("verify_peer"=>false,
        "verify_peer_name"=>false,),); 

$page = file_get_contents("https://www.google.com", 
false, stream_context_create($arrContextOptions));

    echo $page;
?>

It shows me the following error:

  

Warning: file_get_contents (): php_network_getaddresses: getaddrinfo   failed: This is usually a temporary error during the resolution of   host names and means that the local server did not receive a   response from an authoritative server.

If you could help me please.

    
asked by AS13L 17.11.2018 в 00:08
source

0 answers