![]() |
comment créer un site comme ND
|
Thread Tools | Display Modes |
#31
|
||||
|
||||
Je m'excuse mais j'ai rien moi quand je clique sur le liens...
|
#32
|
||||
|
||||
Il manque quelque chose en tout début du code PHP les petits amis :
Code:
header("Content-type: text/xml"); |
#33
|
||||
|
||||
Bon en fait, la page (ouverte avec moz) donne ca..
Code:
<?xml version="1.0"?> <rss version="0.92"> <channel> <title>CDivxstater</title> <description> création d'un cd outils pour réparer son PC </description> <link>http://cdivxstarter.free.fr</link> <language>fr-fr</language> <copyright>© moi 2003</copyright> <managingEditor>kenshin51@voila.fr</managingEditor> <webMaster>kenshin51@voila.fr</webMaster> <item> <title>test</title> <link>http://cdivxstarter.free.fr/freenews....php?id_news=2</link> <comments> http://cdivxstarter.free.fr/comment.php?id= </comments> <pubDate>06/07/2003</pubDate> </item><item> <title>Bonjour cdivxstater</title> <link>http://cdivxstarter.free.fr/freenews....php?id_news=1</link> <comments> http://cdivxstarter.free.fr/comment.php?id= </comments> <pubDate>06/07/2003</pubDate> </item> </channel> </rss> |
#34
|
||||
|
||||
Grillaid, marfi Benjy
|
#35
|
|||
|
|||
j'ai ajouté cette ligne : header("Content-type: text/xml");
en dessous de <?php est ce bon ? voila ce qu'il me dit quand j'essaie d'afficher la page http://cdivxstarter.free.fr/freenews/menu4.php Code:
création d'un cd outils pour réparer son PC http://cdivxstarter.free.fr fr-fr © moi 2003 kenshin51@voila.fr kenshin51@voila.fr Warning: Cannot add header information - headers already sent by (output started at /var/www/free.fr/13/c/d/i/v/cdivxstarter/freenews/menu4.php:2) in menu4.php on line 16 http://cdivxstarter.free.fr/freenews....php?id_news=2 http://cdivxstarter.free.fr/comment.php?id= 06/07/2003 http://cdivxstarter.free.fr/freenews....php?id_news=1 http://cdivxstarter.free.fr/comment.php?id= 06/07/2003 |
#36
|
|||
|
|||
c'est parce que le header doit être envoyé avant l'envoi de code HTML.
Met ça tout au début du fichier : PHP Code:
|
#37
|
|||
|
|||
ok Matt c'est ajouté.
il y a du mieux : j'ai ceci maintenant Code:
The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Erreur non reconnue Quote:
![]() ![]() ![]() |
#38
|
||||
|
||||
Euh, ta version actuelle de menu4.php rulaize...
J'ai ca... Code:
<?xml version="1.0" encoding="ISO-8859-1" ?> - <rss version="0.92"> - <channel> <title>CDivxstarter</title> <description>création d'un cd outils pour réparer son PC</description> <link>http://cdivxstarter.free.fr</link> <language>fr-fr</language> <copyright>© moi 2003</copyright> <managingEditor>kenshin51@voila.fr</managingEditor> <webMaster>kenshin51@voila.fr</webMaster> - <item> <title>test</title> <link>http://cdivxstarter.free.fr/freenews....php?id_news=2</link> <comments>http://cdivxstarter.free.fr/comment.php?id=</comments> <pubDate>06/07/2003</pubDate> </item> - <item> <title>Bonjour cdivxstater</title> <link>http://cdivxstarter.free.fr/freenews....php?id_news=1</link> <comments>http://cdivxstarter.free.fr/comment.php?id=</comments> <pubDate>06/07/2003</pubDate> </item> </channel> </rss> |
#39
|
|||
|
|||
ben ça alors tout à l'heure cela ne fonctionnait pas. :eek: :eek:
Par contre l'appelet javascript ne fonctionne toujours pas. <script language="JavaScript" src="http://cdivxstarter.free.fr/freenews/menu4.php" type="text/javascript"></script> |
#40
|
|||
|
|||
Ben ... Quand je regarde la page qui est censé contenir ton javascript, je me retrouve avec une page XML, donc c'est un peu logique que ça marche pas ...
|
#41
|
|||
|
|||
ben oui c'est bien ce que je comprenais pas donc
à quoi sert le format xml et comment l'utiliser ? |
#42
|
||||
|
||||
Apres il faut un parser... pour le parcourir et récupérer rapidement les infos...
globalement le XML c'est un format universel et extensible de données... n'importe quel soft avec le bon schéma est capable de comprendre/interpréter les contenu... |
#43
|
|||
|
|||
Quote:
comment rendre utilisable le script alors . |
#44
|
||||
|
||||
Ben tu fais un fichier RSS la... donc n'importe quel soft qui sait récupérer les info par RSS est capable d'exploiter le script... (enfn me semble, faudrai que je révise mes classiques RSS...)
|
#45
|
|||
|
|||
ok merci samva
|
![]() |
Bookmarks |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 4 (0 members and 4 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cours de français | Benjy | Discussions sur le site et/ou le forum | 47 | 01-05-2006 14:47 |
BitTorrent : les différents clients | Cougar | Articles | 21 | 25-10-2004 21:15 |
comment configurer le réseau sous 2003 comme sous XP ? | LeMoi | Windows NT4/2000/XP Client | 19 | 16-06-2003 17:15 |
les news dimension sur mon site, comment faire ? | aragorn | Discussions sur le site et/ou le forum | 2 | 15-02-2003 13:56 |
creer un site en php | kenny250 | Discussions sur le site et/ou le forum | 5 | 03-11-2002 11:40 |
All times are GMT +2. The time now is 00:14.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.