사이트 내 전체검색
PHP
댓글이 있는 글의 내용과 해당 댓글을 함께 표시하는 RSS 피드 예제
하우코드
https://cmd.kr/php/974 URL이 복사되었습니다.

본문

   <?xml version="1.0" encoding="UTF-8"?>
   
   <rssversion="2.0"><channel><title>My Blog with Comments</title><link>https://example.com</link><description>Blog posts and comments</description><!-- 첫 번째 글 --><item><title>My First Blog Post</title><link>https://example.com/post/1</link><description>This is my first blog post.</description><!-- 댓글 데이터 --><comment><author>User1</author><content>Great post!</content><pubDate>Wed, 27 Nov 2013 15:17:32 GMT</pubDate></comment><comment><author>User2</author><content>I agree!</content><pubDate>Thu, 28 Nov 2013 10:30:00 GMT</pubDate></comment><comment><author>User3</author><content>Interesting read.</content><pubDate>Fri, 29 Nov 2013 14:45:20 GMT</pubDate></comment></item><!-- 두 번째 글 (다른 글도 추가 가능) --><item><title>Another Blog Post</title><link>https://example.com/post/2</link><description>Check out my latest thoughts.</description><!-- 댓글 데이터 --><comment><author>User4</author><content>Thanks for sharing!</content><pubDate>Sat, 30 Nov 2013 09:00:10 GMT</pubDate></comment><comment><author>User5</author><content>Well written.</content><pubDate>Sun, 1 Dec 2013 18:20:45 GMT</pubDate></comment><comment><author>User6</author><content>Looking forward to more.</content><pubDate>Mon, 2 Dec 2013 12:05:00 GMT</pubDate></comment></item></channel></rss>
   
    
   
My Blog with Comments

댓글목록

등록된 댓글이 없습니다.

PHP
871 (1/18P)

Search

Copyright © Cmd 명령어 18.116.15.22