Il faut essayer d'ajouter un timeout de 15 secondes sur la requête CURL avec "CURLOPT_TIMEOUT" : http://php.net/manual/fr/function.curl-setopt.php


<?php
$ch = curl_init();

[...]...