<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mai.in.th &#187; Twitpic</title>
	<atom:link href="http://mai.in.th/tag/twitpic/feed/" rel="self" type="application/rss+xml" />
	<link>http://mai.in.th</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 23:18:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Show Lastest TwitPic PHP Script</title>
		<link>http://mai.in.th/2009/12/14/show-lastest-twitpic-php-script/</link>
		<comments>http://mai.in.th/2009/12/14/show-lastest-twitpic-php-script/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 03:45:12 +0000</pubDate>
		<dc:creator>IaMMaI</dc:creator>
				<category><![CDATA[My Story]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitpic]]></category>

		<guid isPermaLink="false">http://www.morenetz.com/?p=1063</guid>
		<description><![CDATA[&#60;? //TwitPic Username same as twitter.. $username = "Username" ; //username Case Sensitive!! //Size of Image "mini" 75 px ,"thumb" 150px , "full" Actual size. $size = "full" ; // size "mini","thumb","full" //Get content $html = file_get_contents('http://twitpic.com/photos/'.$username); $matches = null; &#8230; <a href="http://mai.in.th/2009/12/14/show-lastest-twitpic-php-script/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><pre class="brush: php">&lt;?
//TwitPic Username same as twitter..
$username = "Username" ; //username Case Sensitive!!

//Size of Image "mini" 75 px ,"thumb" 150px , "full" Actual size.
$size = "full" ; // size "mini","thumb","full"

//Get content
$html = file_get_contents('http://twitpic.com/photos/'.$username);
$matches = null;
$r = preg_match_all('/a href="\/([0-9a-zA-Z])+"/', $html, $matches);
$link = $matches[0];
$filename = str_replace('"', '', str_replace('a href="/', '', $link[0]));
$image_url = 'http://twitpic.com/show/'.$size.'/'.$filename;

header("Location: $image_url"); //redirect to the image
?&gt;</pre>
<p>แก้ไข Username และขนาดที่ต้องการ ก่อนนะ<br />
เวลาเอาไปใช้ก็ save แล้วก็ link ด้วย tag image ธรรมดาเหมือนสคริปเราคือรูปนั่นแล</p>
<p>&lt;img src=&#8221;twitpic.php&#8221; &gt;  เช่นนี้แล</p>
<footer class="entry-meta">คำค้น : <a href="http://mai.in.th/2009/12/14/show-lastest-twitpic-php-script/" title="twitpic php scripts display">twitpic php scripts display</a> (1) |</footer><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://mai.in.th/2009/12/14/show-lastest-twitpic-php-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

