Code: Select all
<?php
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$response = file_get_contents("https://www.metairie-paulhac.fr/api/show/page/accueil", false, stream_context_create($arrContextOptions));
$data = json_decode($response, true);
echo $data['content'];
?>
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol in /home/vivreune/www/metairie-paulhac/bl-themes/Metairie-V1/php/home.php on line 10
Warning: file_get_contents(): Failed to enable crypto in /home/vivreune/www/metairie-paulhac/bl-themes/Metairie-V1/php/home.php on line 10
Warning: file_get_contents(https://www.metairie-paulhac.fr/api/show/page/accueil): failed to open stream: operation failed in /home/vivreune/www/metairie-paulhac/bl-themes/Metairie-V1/php/home.php on line 10
what is wrong ??