Je m'explique. J'ai un fichier XML de ce type:
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <slide_show> <photo href="http://www.flshow.net/" target="_self">./images/DCP_0730.jpg</photo> <photo href="http://www.flshow.net/" target="_self">./images/DCP_0731.jpg</photo> <photo href="http://www.flshow.net/" target="_self">./images/DCP_0732.jpg</photo> <photo href="http://www.flshow.net/" target="_self">./images/DCP_0733.jpg</photo> </slide_show>
Comment faire pour que chaque balise de type <photo> soit générée par du code PHP automatiquement. Mes photos sont sur mon FTP, mais en fonction de la page appelée, j'aimerai pouvoir sélectionner QUE certaines photos.
J'ai donc crée un fichier PHP avec un while qui permet d'afficher toute les photos d'un catégorie. Avec un "echo" ca affiche bien le ID photos sur ma page php, mais comment faire pour le faire interpreter par mon fichier XML ?
Merci d'avance pour votre réponse car là j'ai trouvé aucun piste.
Partager