Bonsoir,
J'utilise la fonction simplexml_load_file pour récupérer un flux xml distant. Lorsque je teste en local avec easyphp, pas de souci.
Par contre, dès que je l'envoie chez mon hébergeur (free , php 5 activé), j'ai ces erreurs:
Avez vous une idée d'où ça peut venir ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.meteorologic.net/webmaster/xml/xml_file_1411.xml:1: parser error : Space required after the Public Identifier in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.meteorologic.net/webmaster/xml/xml_file_1411.xml:1: parser error : SystemLiteral " or ' expected in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.meteorologic.net/webmaster/xml/xml_file_1411.xml:1: parser error : SYSTEM or PUBLIC, the URI is missing in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189 Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /mnt/102/sda/0/e/meteodu03/previsions.php on line 189
Merci.






Répondre avec citation




Partager