<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>テストブログ</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/" />
    <link rel="self" type="application/atom+xml" href="http://t-marie.com/atom.xml" />
    <id>tag:t-marie.com,2010-06-08://1</id>
    <updated>2010-06-16T06:12:24Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.261</generator>

<entry>
    <title>テスト記事_0616_2</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/-0616-2.php" />
    <id>tag:t-marie.com,2010://1.24</id>

    <published>2010-06-16T06:11:51Z</published>
    <updated>2010-06-16T06:12:24Z</updated>

    <summary>テスト記事だす。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        テスト記事だす。 
        
    </content>
</entry>

<entry>
    <title>テスト_0616_1</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/-0616-1.php" />
    <id>tag:t-marie.com,2010://1.23</id>

    <published>2010-06-16T04:23:28Z</published>
    <updated>2010-06-16T09:03:59Z</updated>

    <summary>テスト記事だぜーー ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    <category term="テスト記事" label="テスト記事" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        テスト記事だぜーー 
        
    </content>
</entry>

<entry>
    <title>トップ記事？</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-7.php" />
    <id>tag:t-marie.com,2010://1.22</id>

    <published>2010-06-16T04:22:38Z</published>
    <updated>2010-06-16T04:23:12Z</updated>

    <summary>はじめまして。トップ記事です。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    <category term="トップ表示記事" label="トップ表示記事" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[はじめまして。<br /><br />トップ記事です。<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>テスト0614_1</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0614-1.php" />
    <id>tag:t-marie.com,2010://1.21</id>

    <published>2010-06-14T08:46:03Z</published>
    <updated>2010-06-14T09:10:26Z</updated>

    <summary>今日の1枚。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[今日の1枚。

<?php
$query_img = "猫";
$number = 9;
display_img($query_img,$number);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0611_4</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0611-4.php" />
    <id>tag:t-marie.com,2010://1.20</id>

    <published>2010-06-11T04:30:19Z</published>
    <updated>2010-06-11T04:19:11Z</updated>

    <summary>未来へ。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
        <category term="テストカテゴリ" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        未来へ。 
        
    </content>
</entry>

<entry>
    <title>テスト0611_3</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-0611-3.php" />
    <id>tag:t-marie.com,2010://1.19</id>

    <published>2010-06-11T03:10:00Z</published>
    <updated>2010-06-11T04:22:50Z</updated>

    <summary>本日3つ目。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
        <category term="テストカテゴリ３" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="テストサブカテゴリ３" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[本日3つ目。

<?php
$query_img = "犬　ブルドッグ";
$number = 0;
display_img($query_img,$number);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0611_2</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-0611-2.php" />
    <id>tag:t-marie.com,2010://1.18</id>

    <published>2010-06-11T02:55:00Z</published>
    <updated>2010-06-11T03:34:33Z</updated>

    <summary>本日2枚目。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
        <category term="テストカテゴリ２" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[本日2枚目。
<?php
$query_img = "犬";
$number = 0;
display_img($query_img,$number);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0611_1</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0611-1.php" />
    <id>tag:t-marie.com,2010://1.17</id>

    <published>2010-06-11T02:52:20Z</published>
    <updated>2010-06-11T02:55:15Z</updated>

    <summary>テスト記事ー ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
        <category term="テストサブカテゴリ" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        テスト記事ー 
        
    </content>
</entry>

<entry>
    <title>テスト0610_3</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0610-3.php" />
    <id>tag:t-marie.com,2010://1.14</id>

    <published>2010-06-10T07:21:54Z</published>
    <updated>2010-06-10T07:22:18Z</updated>

    <summary> 文章のみ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
         文章のみ
        
    </content>
</entry>

<entry>
    <title>テスト0610_2</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0610-2.php" />
    <id>tag:t-marie.com,2010://1.13</id>

    <published>2010-06-10T06:41:49Z</published>
    <updated>2010-06-11T02:47:28Z</updated>

    <summary> 本日2枚目。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[ 本日2枚目。

<?php
$query_img = "りんご";
$number = 2;

display_img($query_img,$number);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0610_5</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-0610-5.php" />
    <id>tag:t-marie.com,2010://1.16</id>

    <published>2010-06-10T06:10:00Z</published>
    <updated>2010-06-10T07:39:34Z</updated>

    <summary>本日4つ目。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[本日4つ目。

<?php
$query_img = "バナナ";
display_img($query_img);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0610_4</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-0610-4.php" />
    <id>tag:t-marie.com,2010://1.15</id>

    <published>2010-06-10T06:00:00Z</published>
    <updated>2010-06-11T02:48:51Z</updated>

    <summary>本日3つ目。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[本日3つ目。
<?php
$query_img = "みかん";
$number = 0;

display_img($query_img,$number);
?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト0610_1</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/0610-1.php" />
    <id>tag:t-marie.com,2010://1.12</id>

    <published>2010-06-10T02:21:40Z</published>
    <updated>2010-06-10T07:23:23Z</updated>

    <summary> 今日の一枚。 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[ 今日の一枚。

<?php

$query_img = "りんご";
?>
]]>
        
    </content>
</entry>

<entry>
    <title>テスト１１</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-6.php" />
    <id>tag:t-marie.com,2010://1.11</id>

    <published>2010-06-09T09:54:36Z</published>
    <updated>2010-06-10T01:00:11Z</updated>

    <summary>今度はどうかなー？ \n\n&quot;; $appid = &apos;ZRsf4ZOxg64oO...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[今度はどうかなー？


<?php

$query_url = "りんご";
echo "クエリー＝".$query_url;
echo "<br><br>\n\n";
$appid = 'ZRsf4ZOxg64oOMdYoryVYUVoLcjWy5lhyt5NXdVhzz8L2JTFUP0cWNpx1ocsUw--';
$service_y_img = "http://search.yahooapis.jp/ImageSearchService/V1/imageSearch";
	function cvt_s($text)	{
		return mb_convert_encoding($text,"SJIS","UTF-8");
	}
	function cvt_u($text){
		return mb_convert_encoding($text,"UTF-8","auto");
	}
echo "ポイント2";
$start = 1;	
$results = 10;
$adult_ok = "";
$similar_ok = "";
echo "ポイント3";
$loop = 0;
$query = $service_y_img."?appid=".$appid."&query=".urlencode(cvt_u($query_url))."&results=".$results."&start=".$start;

echo "<br><br>\n\n";

	if ($fileContents = file_get_contents($query)){
		$xml = new SimpleXMLElement($fileContents);
}

echo "ポイント4";
echo "loop = ".$loop;
echo "<br>\n\n";
$clkurl = $xml->Result[$loop]->ClickUrl;
echo "<img src= ".$clkurl.">";

?>]]>
        
    </content>
</entry>

<entry>
    <title>テスト１０</title>
    <link rel="alternate" type="text/html" href="http://t-marie.com/2010/06/post-5.php" />
    <id>tag:t-marie.com,2010://1.10</id>

    <published>2010-06-09T09:33:48Z</published>
    <updated>2010-06-09T09:51:39Z</updated>

    <summary>テスト記事の１０個目 ...</summary>
    <author>
        <name>yama</name>
        <uri>http://t-marie.com/mt-cp.cgi?__mode=view&amp;blog_id=1&amp;id=1</uri>
    </author>
    
    
    <content type="html" xml:lang="ja" xml:base="http://t-marie.com/">
        <![CDATA[<p>テスト記事の１０個目</p>

<?php

$test = "testdayooooo";

echo $test;

?>]]>
        
    </content>
</entry>

</feed>

