<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Get a URL&#8217;s Reddit Score Using PHP and&#160;JSON</title> <atom:link href="http://davidwalsh.name/get-reddit-score/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/get-reddit-score</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 07:54:33 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Bouncer</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-18913</link> <dc:creator>Bouncer</dc:creator> <pubDate>Tue, 20 Jul 2010 05:56:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-18913</guid> <description>If I use the format as XML, it doesn&#039;t show me the score or ups &amp; down. Any help !</description> <content:encoded><![CDATA[<p>If I use the format as XML, it doesn&#8217;t show me the score or ups &amp; down. Any help !</p> ]]></content:encoded> </item> <item><title>By: Hayden</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-17947</link> <dc:creator>Hayden</dc:creator> <pubDate>Mon, 31 May 2010 14:36:09 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-17947</guid> <description>Just to add my 2 cents, it could also be done like so.$reddit_url = &#039;http://www.reddit.com/api/info.%s?url=%s&#039;;
$format = &#039;json&#039;; //use XML if you&#039;d like...JSON FTW!/* action */
$content = get_url(sprintf($reddit_url,$format,urlencode($url)));but as you stated before, it&#039;s personal preference and I like coming here for tips. ;) Keep up the good articles!</description> <content:encoded><![CDATA[<p>Just to add my 2 cents, it could also be done like so.</p><p>$reddit_url = &#8216;<a
href="http://www.reddit.com/api/info.%s?url=%s&#039;" rel="nofollow">http://www.reddit.com/api/info.%s?url=%s&#039;</a>;<br
/> $format = &#8216;json&#8217;; //use XML if you&#8217;d like&#8230;JSON FTW!</p><p>/* action */<br
/> $content = get_url(sprintf($reddit_url,$format,urlencode($url)));</p><p>but as you stated before, it&#8217;s personal preference and I like coming here for tips. ;) Keep up the good articles!</p> ]]></content:encoded> </item> <item><title>By: bob</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-17507</link> <dc:creator>bob</dc:creator> <pubDate>Mon, 10 May 2010 18:34:46 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-17507</guid> <description>urlencode($url) before appending it to the reddit url, or it will break on URLs that contain query string parameters of their own, among other things.</description> <content:encoded><![CDATA[<p>urlencode($url) before appending it to the reddit url, or it will break on URLs that contain query string parameters of their own, among other things.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13679</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 17 Nov 2009 01:33:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13679</guid> <description>@Al:  Thank you, sir.</description> <content:encoded><![CDATA[<p>@Al:  Thank you, sir.</p> ]]></content:encoded> </item> <item><title>By: Al</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13676</link> <dc:creator>Al</dc:creator> <pubDate>Mon, 16 Nov 2009 22:12:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13676</guid> <description>reddit reddit reddit.  oh david, you&#039;re such a whore.</description> <content:encoded><![CDATA[<p>reddit reddit reddit.  oh david, you&#8217;re such a whore.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13582</link> <dc:creator>David Walsh</dc:creator> <pubDate>Fri, 13 Nov 2009 01:18:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13582</guid> <description>@Chris the Developer:  Damnit, you got me! :)</description> <content:encoded><![CDATA[<p>@Chris the Developer:  Damnit, you got me! :)</p> ]]></content:encoded> </item> <item><title>By: Chris the Developer</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13561</link> <dc:creator>Chris the Developer</dc:creator> <pubDate>Thu, 12 Nov 2009 14:26:19 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13561</guid> <description>&#039;http://www.reddit.com/api/info.{format}?url={url}&#039; :P</description> <content:encoded><![CDATA[<p>&#8216;<a
href="http://www.reddit.com/api/info." rel="nofollow">http://www.reddit.com/api/info.</a>{format}?url={url}&#8217; :P</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13557</link> <dc:creator>David Walsh</dc:creator> <pubDate>Thu, 12 Nov 2009 13:36:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13557</guid> <description>@Chris the Developer:  Oh.  I like my mini templating system.  A minor detail/preference, in my opinion.</description> <content:encoded><![CDATA[<p>@Chris the Developer:  Oh.  I like my mini templating system.  A minor detail/preference, in my opinion.</p> ]]></content:encoded> </item> <item><title>By: Thorsten</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13556</link> <dc:creator>Thorsten</dc:creator> <pubDate>Thu, 12 Nov 2009 11:07:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13556</guid> <description>David,could you provide a workaround because of the great topbar??? I really like it!</description> <content:encoded><![CDATA[<p>David,</p><p>could you provide a workaround because of the great topbar??? I really like it!</p> ]]></content:encoded> </item> <item><title>By: Chris the Developer</title><link>http://davidwalsh.name/get-reddit-score/comment-page-1#comment-13555</link> <dc:creator>Chris the Developer</dc:creator> <pubDate>Thu, 12 Nov 2009 10:56:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4189#comment-13555</guid> <description>I just means that you could save on the str_replace by using string variable substitution supported by php...$a = &#039;foo&#039;;
$b = &quot;hello {$a}&quot;;</description> <content:encoded><![CDATA[<p>I just means that you could save on the str_replace by using string variable substitution supported by php&#8230;</p><p>$a = &#8216;foo&#8217;;<br
/> $b = &#8220;hello {$a}&#8221;;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/19 queries in 0.015 seconds using disk: basic
Object Caching 867/870 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 03:38:51 -->
