Bonjour,
Je suis passé sous PHP5 en utilisant l'astuce de .htaccess
Depuis j'ai implémenté sur mon site un parseur de flux RSS. Pour lire le RSS j'utilise le code suivant :
class XML {
private $xmlPath;
private $xmlDom;
public function __construct($xmlPath=""){
$this->xmlPath = $xmlPath;
$this->xmlDom = new DOMDocument();
if($xmlPath != ""){
$this->xmlDom->load($this->xmlPath);
}
}
}
Ce qui est très bizarre, c'est que mon RSS ce chargait sans problème il n'y a pas longtemps et maintenant j'ai les erreurs suivants :
Warning: DOMDocument::load() [function.DOMDocument-load]: AttValue: ' expected in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Warning: DOMDocument::load() [function.DOMDocument-load]: attributes construct error in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Warning: DOMDocument::load() [function.DOMDocument-load]: Couldn't find end of Start Tag enclosure line 1 in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Warning: DOMDocument::load() [function.DOMDocument-load]: Premature end of data in tag item line 1 in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Warning: DOMDocument::load() [function.DOMDocument-load]: Premature end of data in tag channel line 1 in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Warning: DOMDocument::load() [function.DOMDocument-load]: Premature end of data in tag rss line 1 in http://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&authkey=Gv1sRgCMX_osOQhoihUw&hl=en_US, line: 1 in /mnt/159/sda/3/6/wingless/restricted/class/XML.php on line 11
Le pire étant que sur mes multiples flux RSS seulement 1 ne veut plus fonctionner.
Celui là ne marche plus :
https://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5667187538230460897?alt=rss&kind=photo&hl=en_US
Celui là marche :
https://picasaweb.google.com/data/feed/base/user/100018968967344777280/albumid/5704287688434917537?alt=rss&kind=photo&hl=en_US
Quel est le problème? Le RSS est trop gros? Sur mon installation XAMPP en local j'arrive à lire mon RSS. Je n'est pas ces erreurs.