<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Use PHP to add your Twitter feed to any page</title>
	<atom:link href="http://herselfswebtools.com/2008/08/use-php-to-add-your-twitter-feed-to-any-page.html/feed" rel="self" type="application/rss+xml" />
	<link>http://herselfswebtools.com/2008/08/use-php-to-add-your-twitter-feed-to-any-page.html</link>
	<description>Scripts, HowTos, Templates, Plugins, Widgets, Tips</description>
	<lastBuildDate>Mon, 16 Jan 2012 16:16:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: timestocome</title>
		<link>http://herselfswebtools.com/2008/08/use-php-to-add-your-twitter-feed-to-any-page.html/comment-page-1#comment-421</link>
		<dc:creator>timestocome</dc:creator>
		<pubDate>Tue, 19 Oct 2010 01:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://herselfswebtools.com/?p=279#comment-421</guid>
		<description>Thank you.  I was buried in code all day I just came up for air.

WP is finicky about scripts in comments because of all the cross-site scripting hacks I&#039;m impressed you got it to take.

I stopped using it because if twitter.com went down it makes the website load too slowly to be useful.  PHP has a long built in timeout.

Do you know any way to shorten that timeout?</description>
		<content:encoded><![CDATA[<p>Thank you.  I was buried in code all day I just came up for air.</p>
<p>WP is finicky about scripts in comments because of all the cross-site scripting hacks I&#8217;m impressed you got it to take.</p>
<p>I stopped using it because if twitter.com went down it makes the website load too slowly to be useful.  PHP has a long built in timeout.</p>
<p>Do you know any way to shorten that timeout?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ollybenson</title>
		<link>http://herselfswebtools.com/2008/08/use-php-to-add-your-twitter-feed-to-any-page.html/comment-page-1#comment-420</link>
		<dc:creator>ollybenson</dc:creator>
		<pubDate>Sun, 17 Oct 2010 21:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://herselfswebtools.com/?p=279#comment-420</guid>
		<description>No, sorry, doesn&#039;t want to paste properly into the comments box.</description>
		<content:encoded><![CDATA[<p>No, sorry, doesn&#8217;t want to paste properly into the comments box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ollybenson</title>
		<link>http://herselfswebtools.com/2008/08/use-php-to-add-your-twitter-feed-to-any-page.html/comment-page-1#comment-419</link>
		<dc:creator>ollybenson</dc:creator>
		<pubDate>Sun, 17 Oct 2010 21:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://herselfswebtools.com/?p=279#comment-419</guid>
		<description>Here&#039;s my updated code:


channel-&gt;item;
for($a=0;$a&lt;numOfTweets;$a++) {
	$tweet = $tweets{$a};
	echo &quot;&quot;.utf8_decode(preg_replace(
		array(	&quot;@https?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?@i&quot;,
				&quot;@#([a-zA-Z0-9]+)@i&quot;,
				&quot;@\@([a-zA-Z0-9]+)@i&quot;),
		array(	&quot;&lt;a href=&quot;$0&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&quot;,
				&quot;&lt;a href=&quot;http://twitter.com/search?q=$1&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&quot;,
				&quot;&lt;a href=&quot;http://twitter.com/$1&quot; rel=&quot;nofollow&quot;&gt;$0&lt;/a&gt;&quot;),
		substr(stristr($tweet-&gt;description,&#039;: &#039;), 2)));
	echo &quot; &lt;a&gt;link.&quot;\&quot;&gt;#&lt;/a&gt;&quot;;
	// echo $tweet-&gt;pubDate;  // if you want to show the date/time
	}
?&gt;
</description>
		<content:encoded><![CDATA[<p>Here&#8217;s my updated code:</p>
<p>channel-&gt;item;<br />
for($a=0;$a&lt;numOfTweets;$a++) {<br />
	$tweet = $tweets{$a};<br />
	echo &quot;&#8221;.utf8_decode(preg_replace(<br />
		array(	&#8220;@https?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?@i&#8221;,<br />
				&#8220;@#([a-zA-Z0-9]+)@i&#8221;,<br />
				&#8220;@\@([a-zA-Z0-9]+)@i&#8221;),<br />
		array(	&#8220;<a href="$0" rel="nofollow">$0</a>&#8220;,<br />
				&#8220;<a href="http://twitter.com/search?q=$1" rel="nofollow">$0</a>&#8220;,<br />
				&#8220;<a href="http://twitter.com/$1" rel="nofollow">$0</a>&#8220;),<br />
		substr(stristr($tweet-&gt;description,&#8217;: &#8216;), 2)));<br />
	echo &#8221; <a>link.&#8221;\&#8221;&gt;#</a>&#8220;;<br />
	// echo $tweet-&gt;pubDate;  // if you want to show the date/time<br />
	}<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

