[php] เกี่ยวกับ feed

เริ่มโดย aofiezzangz, 10 มกราคม 2013, 17:32:10

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

aofiezzangz

สอบถามครับ มีวิธีไหนที่สามารถดึง Feed rss ได้มากกว่า 1 url ไหมครับ

เช่น

$url_feed = '[color=red]http://www.manager.co.th/RSS/Home/Breakingnews.xml[/color]';
   
$xml = simplexml_load_file($url_feed);


อยากจะเพิ่มเป็น
http://www.manager.co.th/RSS/Home/Breakingnews1.xml
http://www.manager.co.th/RSS/Home/Breakingnews2.xml
http://www.manager.co.th/RSS/Home/Breakingnews3.xml
http://www.manager.co.th/RSS/Home/Breakingnews4.xml
http://www.manager.co.th/RSS/Home/Breakingnews5.xml

โดยการอ่านค่า xml ทั้ง 5 url นี้อยู่ในไฟล์ php เดียวกันครับ

สรุปคือ อยากดึง rss มากกว่า 1 url สามารถทำได้ด้วยวิธีไหนบ้างครับ

xvlnw.com

วนลูปดึงเอาสิครับ แล้วเอาข้อมูลมารวมกัน
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

aofiezzangz

อ้างถึงวนลูปดึงเอาสิครับ แล้วเอาข้อมูลมารวมกัน


ขอบคุณมากครับ พอจะชี้ลิ้งให้ดูเป็นตัวอย่างได้ไหมครับ