พบกับบทความเกี่ยวกับคอมพิวเตอร์และ programming ได้ที่ http://articles.modoeye.com | บล็อกอาหาร
PHP development / พอจะมีโค๊ด php ที่จะแปลงไฟล์ xml ลงด้าต้าเบส mysql
oh
oh
Mon 17 Mar 2008 16:02:31

พอจะมีโค๊ด php ที่จะแปลงไฟล์ xml ลงด้าต้าเบส mysql  ไหมครับ อย่างเช่นลิงค์นี้

http://www.arip.co.th/rss/rss_news.xml
มันจะเป็นโค๊ด xml ทีนี้ผมอยากจะเอาข้อมูล xml ที่เป็นดังข้างล่าง

 - <item>
  <title>เอเซอร์ เปิดโน้ตบุ๊คม้าป่าตัวที่ 7 พร้อมกลยุทธ์สู้ในคอมมาร์ตฯ 08</title>
  <description>นายนิธิพัทธ์ ประวีณวงค์วุฒิ ผู้จัดการฝ่ายการตลาด บริษัท เอเซอร์ คอมพิวเตอร์ จำกัด กล่าวว่า จากการที่เอเซอร์ได้แนะนำผลิตภัณฑ์โน้ตบุ๊คเฟอร์รารี่สู่ตลาดไปแล้ว 6 ซีรี่ส์ ในช่วง 2-3 ปีที่ผ่านมา</description>
  <link>http://www.arip.co.th/2006/news.php?id=407256</link>
  <category>Business</category>
  <pubDate>Mon, 17 Mar 2008 09:24:00 +0700</pubDate>
  <guid>http://www.arip.co.th/2006/news.php?id=407256</guid>
  </item>

title, description, link, category, pubdate, guid

แบบนี้จะครับแล้วเอาข้อมูลข้างต้นไปเก็บลงใน mysql ที่มีฟิลด์ตามนี้ title, description, link, category, pubdate, guid  

ต้องทำยังไงบ้างครับ
webmaster
webmaster
Mon 17 Mar 2008 21:39:18
ลอง google คำว่า rss parser ดูครับ ถ้าไม่มีก็เขียนเองเลยครับไม่ยาก
Reply
Name:
E-mail:
Home | Services | Forum | Classified | Directories | Support | Contact
ATOM feed RSS 0.9 feed RSS 1.0 feed RSS 2.0 feed
Copyright © 2005 - 2007 Modoeye.com, All Rights Reserved.
Disclaimer | Privacy policy | Term of Use | Term of Services
Valid XHTML Valid CSS! PHP: Hypertext Preprocessor MySQL database Apache Powered! FreeBSD Power to serve
Modoeye Sitemap Client login