J'ai une page (http://www.sportwif.com/epreuves.php?epreuve=9 par exemple) qui aléatoirement me génère l'erreur suivante :
Pour info, j'ai un bout de code qui récupère du xml de l'API twitter :Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 49: parser error : Entity 'rsaquo' not defined in /homepages/26/d297337207/htdocs/epreuves.php on line 289
$url = "http://twitter.com/statuses/user_timeline.xml?screen_name=".$LoginTwitter; //ex : "http://twitter.com/statuses/user_timeline.xml?screen_name=aurebond"
$ch = curl_init();
$timeout = 0; // set <strong class="highlight">to</strong> zero for no timeout
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$result = curl_exec($ch);
curl_close($ch);
$xml = simplexml_load_string($result); //=>ma ligne 289
Ce n'est absolument pas régulier et je ne sais pas identifier et donc résoudre mon problème.Pouvez-vous m'aider ?
Merci !
Jérôme