Bonjour,
j’ai sur une page web le code suivant :
$curl = curl_init($url);
$options = array(
CURLOPT_URL => $url,
CURLOPT_HEADER => false,
CURLOPT_CONNECTTIMEOUT => 5,
CURLOPT_TIMEOUT => 5,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER =>array('Accept: application/json', "Content-type: application/json"),
CURLOPT_FAILONERROR => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_SSL_VERIFYHOST => FALSE
);
curl_setopt_array($curl, $options);
$response = curl_exec($curl);
$response = json_decode($response);
$array = json_decode(json_encode($response), True);
Quand je teste le code en local (Sous Wamp) tout fonctionne mais une fois passer sur mon serveur Debian rien ne s’exécute
J’ai installé sur le serveur les paquets nécessaire (Par exemple : curl libcurl3 php5-curl)
mais après le redémarrage d’apache cela n’as pas réglè le problème …
Quelqu’un à t’il déjà rencontré ce problème ?
Merci 
PS : PHP Version 5.6.22-0+deb8u1