RSSを引き込みます。 環境としてPHP5以上です。
WordPressの場合は、include_once(ABSPATH . WPINC . '/rss.php');
$rss = fetch_rss('アドレス'); でいきますが、ここは単純にsimplexml_load_fileを使ってみます。
simplexml_load_file — XMLファイルをパースし、オブジェクトに代入。
都内に事務所を移して変わった事など、近況報告
プログラム及び保守の専門化を行いました。
object(SimpleXMLElement)#2 (2) { ["@attributes"]=> array(1) { ["version"]=> string(3) "2.0" } ["channel"]=> object(SimpleXMLElement)#3 (7) { ["title"]=> string(18) "デザインラボ" ["link"]=> string(30) "http://www.d-labo.net/contents" ["description"]=> string(92) "ホームページ制作会社/デザイン事務所/製品デザインのデザインラボ" ["lastBuildDate"]=> string(31) "Tue, 01 Mar 2016 02:00:13 +0000" ["language"]=> string(2) "ja" ["generator"]=> string(31) "https://wordpress.org/?v=4.4.32" ["item"]=> array(10) { [0]=> object(SimpleXMLElement)#4 (7) { ["title"]=> string(66) "都内に事務所を移して変わった事など、近況報告" ["link"]=> string(178) "http://www.d-labo.net/contents/2016/03/01/%e9%83%bd%e5%86%85%e3%81%ab%e4%ba%8b%e5%8b%99%e6%89%80%e3%82%92%e7%a7%bb%e3%81%97%e3%81%a6%e5%a4%89%e3%82%8f%e3%81%a3%e3%81%9f%e4%ba%8b/" ["comments"]=> string(186) "http://www.d-labo.net/contents/2016/03/01/%e9%83%bd%e5%86%85%e3%81%ab%e4%ba%8b%e5%8b%99%e6%89%80%e3%82%92%e7%a7%bb%e3%81%97%e3%81%a6%e5%a4%89%e3%82%8f%e3%81%a3%e3%81%9f%e4%ba%8b/#respond" ["pubDate"]=> string(31) "Tue, 01 Mar 2016 01:58:10 +0000" ["category"]=> object(SimpleXMLElement)#14 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=386" ["description"]=> object(SimpleXMLElement)#15 (0) { } } [1]=> object(SimpleXMLElement)#5 (7) { ["title"]=> string(60) "プログラム及び保守の専門化を行いました。" ["link"]=> string(160) "http://www.d-labo.net/contents/2014/01/06/%e9%83%bd%e5%86%85%e3%81%ab%e4%ba%8b%e5%8b%99%e6%89%80%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/" ["comments"]=> string(168) "http://www.d-labo.net/contents/2014/01/06/%e9%83%bd%e5%86%85%e3%81%ab%e4%ba%8b%e5%8b%99%e6%89%80%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/#respond" ["pubDate"]=> string(31) "Sun, 05 Jan 2014 22:08:14 +0000" ["category"]=> array(2) { [0]=> object(SimpleXMLElement)#15 (0) { } [1]=> object(SimpleXMLElement)#14 (0) { } } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=372" ["description"]=> object(SimpleXMLElement)#16 (0) { } } [2]=> object(SimpleXMLElement)#6 (7) { ["title"]=> string(48) "UQ WiMAXのURoad-SS10を買ってみました。" ["link"]=> string(151) "http://www.d-labo.net/contents/2012/04/17/uq-wimax%e3%81%aeuroad-ss10%e3%82%92%e8%b2%b7%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/" ["comments"]=> string(159) "http://www.d-labo.net/contents/2012/04/17/uq-wimax%e3%81%aeuroad-ss10%e3%82%92%e8%b2%b7%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%be%e3%81%97%e3%81%9f%e3%80%82/#respond" ["pubDate"]=> string(31) "Mon, 16 Apr 2012 16:21:45 +0000" ["category"]=> object(SimpleXMLElement)#16 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=358" ["description"]=> object(SimpleXMLElement)#14 (0) { } } [3]=> object(SimpleXMLElement)#7 (7) { ["title"]=> string(30) "技術と共に行動も変化" ["link"]=> string(133) "http://www.d-labo.net/contents/2012/03/04/%e6%8a%80%e8%a1%93%e3%81%a8%e5%85%b1%e3%81%ab%e8%a1%8c%e5%8b%95%e3%82%82%e5%a4%89%e5%8c%96/" ["comments"]=> string(141) "http://www.d-labo.net/contents/2012/03/04/%e6%8a%80%e8%a1%93%e3%81%a8%e5%85%b1%e3%81%ab%e8%a1%8c%e5%8b%95%e3%82%82%e5%a4%89%e5%8c%96/#respond" ["pubDate"]=> string(31) "Sat, 03 Mar 2012 17:25:25 +0000" ["category"]=> object(SimpleXMLElement)#14 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=352" ["description"]=> object(SimpleXMLElement)#16 (0) { } } [4]=> object(SimpleXMLElement)#8 (7) { ["title"]=> string(23) "kodakが倒産・・・" ["link"]=> string(102) "http://www.d-labo.net/contents/2012/01/05/kodak%e3%81%8c%e5%80%92%e7%94%a3%e3%83%bb%e3%83%bb%e3%83%bb/" ["comments"]=> string(110) "http://www.d-labo.net/contents/2012/01/05/kodak%e3%81%8c%e5%80%92%e7%94%a3%e3%83%bb%e3%83%bb%e3%83%bb/#respond" ["pubDate"]=> string(31) "Thu, 05 Jan 2012 08:32:08 +0000" ["category"]=> object(SimpleXMLElement)#16 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=346" ["description"]=> object(SimpleXMLElement)#14 (0) { } } [5]=> object(SimpleXMLElement)#9 (7) { ["title"]=> string(51) "今年度も宜しくお願い申し上げます。" ["link"]=> string(196) "http://www.d-labo.net/contents/2012/01/03/%e4%bb%8a%e5%b9%b4%e5%ba%a6%e3%82%82%e5%ae%9c%e3%81%97%e3%81%8f%e3%81%8a%e9%a1%98%e3%81%84%e7%94%b3%e3%81%97%e4%b8%8a%e3%81%92%e3%81%be%e3%81%99%e3%80%82/" ["comments"]=> string(204) "http://www.d-labo.net/contents/2012/01/03/%e4%bb%8a%e5%b9%b4%e5%ba%a6%e3%82%82%e5%ae%9c%e3%81%97%e3%81%8f%e3%81%8a%e9%a1%98%e3%81%84%e7%94%b3%e3%81%97%e4%b8%8a%e3%81%92%e3%81%be%e3%81%99%e3%80%82/#respond" ["pubDate"]=> string(31) "Mon, 02 Jan 2012 23:51:11 +0000" ["category"]=> object(SimpleXMLElement)#14 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=342" ["description"]=> object(SimpleXMLElement)#16 (0) { } } [6]=> object(SimpleXMLElement)#10 (7) { ["title"]=> string(9) "CentOS6.2" ["link"]=> string(52) "http://www.d-labo.net/contents/2011/12/26/centos6-2/" ["comments"]=> string(60) "http://www.d-labo.net/contents/2011/12/26/centos6-2/#respond" ["pubDate"]=> string(31) "Sun, 25 Dec 2011 15:44:54 +0000" ["category"]=> object(SimpleXMLElement)#16 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=339" ["description"]=> object(SimpleXMLElement)#14 (0) { } } [7]=> object(SimpleXMLElement)#11 (7) { ["title"]=> string(36) "テストサーバーを組み替え" ["link"]=> string(151) "http://www.d-labo.net/contents/2011/12/13/%e3%83%86%e3%82%b9%e3%83%88%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e7%b5%84%e3%81%bf%e6%9b%bf%e3%81%88/" ["comments"]=> string(159) "http://www.d-labo.net/contents/2011/12/13/%e3%83%86%e3%82%b9%e3%83%88%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%82%92%e7%b5%84%e3%81%bf%e6%9b%bf%e3%81%88/#respond" ["pubDate"]=> string(31) "Tue, 13 Dec 2011 01:14:51 +0000" ["category"]=> object(SimpleXMLElement)#14 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=335" ["description"]=> object(SimpleXMLElement)#16 (0) { } } [8]=> object(SimpleXMLElement)#12 (7) { ["title"]=> string(42) "猫が擦り寄ってきます・・・・" ["link"]=> string(169) "http://www.d-labo.net/contents/2011/12/03/%e7%8c%ab%e3%81%8c%e6%93%a6%e3%82%8a%e5%af%84%e3%81%a3%e3%81%a6%e3%81%8d%e3%81%be%e3%81%99%e3%83%bb%e3%83%bb%e3%83%bb%e3%83%bb/" ["comments"]=> string(177) "http://www.d-labo.net/contents/2011/12/03/%e7%8c%ab%e3%81%8c%e6%93%a6%e3%82%8a%e5%af%84%e3%81%a3%e3%81%a6%e3%81%8d%e3%81%be%e3%81%99%e3%83%bb%e3%83%bb%e3%83%bb%e3%83%bb/#respond" ["pubDate"]=> string(31) "Fri, 02 Dec 2011 16:19:11 +0000" ["category"]=> object(SimpleXMLElement)#16 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=331" ["description"]=> object(SimpleXMLElement)#14 (0) { } } [9]=> object(SimpleXMLElement)#13 (7) { ["title"]=> string(18) "パーツを購入" ["link"]=> string(97) "http://www.d-labo.net/contents/2011/12/03/%e3%83%91%e3%83%bc%e3%83%84%e3%82%92%e8%b3%bc%e5%85%a5/" ["comments"]=> string(105) "http://www.d-labo.net/contents/2011/12/03/%e3%83%91%e3%83%bc%e3%83%84%e3%82%92%e8%b3%bc%e5%85%a5/#respond" ["pubDate"]=> string(31) "Fri, 02 Dec 2011 16:13:36 +0000" ["category"]=> object(SimpleXMLElement)#14 (0) { } ["guid"]=> string(37) "http://www.d-labo.net/contents/?p=327" ["description"]=> object(SimpleXMLElement)#16 (0) { } } } } }