<?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: phpFlickr 2.3.0.1</title>
	<atom:link href="http://phpflickr.com/2008/12/18/phpflickr-2301/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpflickr.com/2008/12/18/phpflickr-2301/</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jul 2010 20:32:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: seccanj</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-91359</link>
		<dc:creator>seccanj</dc:creator>
		<pubDate>Fri, 14 Aug 2009 15:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-91359</guid>
		<description>Thanks a lot Dan for this class, it&#039;s been very useful for me!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot Dan for this class, it&#039;s been very useful for me!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Melrose</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89228</link>
		<dc:creator>Stephen Melrose</dc:creator>
		<pubDate>Tue, 16 Jun 2009 19:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89228</guid>
		<description>$photos = $f-&gt;photosets_getPhotos($setid);
if(!empty($photos))
{
foreach($photos[&#039;photoset&#039;][&#039;photo&#039;] as $photo)
{
$photoURL = &#039;buildPhotoURL($photo, &quot;original&quot;) . &#039;&quot;&gt;&#039;;
echo $photoURL;
}
}</description>
		<content:encoded><![CDATA[<p>$photos = $f-&gt;photosets_getPhotos($setid);<br />
if(!empty($photos))<br />
{<br />
foreach($photos['photoset']['photo'] as $photo)<br />
{<br />
$photoURL = &#039;buildPhotoURL($photo, &#034;original&#034;) . &#039;&#034;&gt;&#039;;<br />
echo $photoURL;<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89225</link>
		<dc:creator>Darfuria</dc:creator>
		<pubDate>Tue, 16 Jun 2009 17:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89225</guid>
		<description>Well, dispite trying, I&#039;ve not been able to do that, hence commenting here =/</description>
		<content:encoded><![CDATA[<p>Well, dispite trying, I&#039;ve not been able to do that, hence commenting here =/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89224</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 17:42:19 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89224</guid>
		<description>Based on that output, you should be able to figure out what you need to use in your foreach loop.</description>
		<content:encoded><![CDATA[<p>Based on that output, you should be able to figure out what you need to use in your foreach loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89222</link>
		<dc:creator>Darfuria</dc:creator>
		<pubDate>Tue, 16 Jun 2009 14:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89222</guid>
		<description>This is my output for print_r($photos);

http://pastebin.com/m584adbe3</description>
		<content:encoded><![CDATA[<p>This is my output for print_r($photos);</p>
<p><a href="http://pastebin.com/m584adbe3" rel="nofollow">http://pastebin.com/m584adbe3</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89221</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 13:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89221</guid>
		<description>In this exact post, you&#039;ll see that the output of this method has changed to bring it more in line with the actual results of the API call.  What do you get when you run print_r($photos)?</description>
		<content:encoded><![CDATA[<p>In this exact post, you&#039;ll see that the output of this method has changed to bring it more in line with the actual results of the API call.  What do you get when you run print_r($photos)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darfuria</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-89216</link>
		<dc:creator>Darfuria</dc:creator>
		<pubDate>Tue, 16 Jun 2009 09:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-89216</guid>
		<description>Hi Dan.

I&#039;m using the following code:

$photos = $f-&gt;photosets_getPhotos($setid);
if(!empty($photos))
{	
foreach($photos[&#039;photo&#039;] as $photo) 
{
$photoURL = &#039;buildPhotoURL($floto, &quot;original&quot;) . &#039;&quot;&gt;&#039;;
echo $photoURL;
}
}

and I&#039;m getting this error:

Warning: Invalid argument supplied for foreach()

I&#039;ve seen others having this issue. Annoyingly when searching for PHP errors on Google, on tends to stumble upon a lot of websites that are having that issue, rather than discussions for possible resolutions...

If I change the code to something like:

foreach($photos as $photo) 
{
$floto = $photo[&#039;photo&#039;];
$photoURL = &#039;buildPhotoURL($floto, &quot;original&quot;) . &#039;&quot;&gt;&#039;;
echo $photoURL;
}

Then my output is  

Any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi Dan.</p>
<p>I&#039;m using the following code:</p>
<p>$photos = $f-&gt;photosets_getPhotos($setid);<br />
if(!empty($photos))<br />
{<br />
foreach($photos['photo'] as $photo)<br />
{<br />
$photoURL = &#039;buildPhotoURL($floto, &#034;original&#034;) . &#039;&#034;&gt;&#039;;<br />
echo $photoURL;<br />
}<br />
}</p>
<p>and I&#039;m getting this error:</p>
<p>Warning: Invalid argument supplied for foreach()</p>
<p>I&#039;ve seen others having this issue. Annoyingly when searching for PHP errors on Google, on tends to stumble upon a lot of websites that are having that issue, rather than discussions for possible resolutions&#8230;</p>
<p>If I change the code to something like:</p>
<p>foreach($photos as $photo)<br />
{<br />
$floto = $photo['photo'];<br />
$photoURL = &#039;buildPhotoURL($floto, &#034;original&#034;) . &#039;&#034;&gt;&#039;;<br />
echo $photoURL;<br />
}</p>
<p>Then my output is  </p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-86979</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 24 Mar 2009 15:42:45 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-86979</guid>
		<description>&gt;I just wanted to say a thank you. I needed a quick and easy way to grab data from the flickr API and yours did just the trick.

You&#039;re welcome! I&#039;m glad it is useful.

&gt;Out of interest, will be creating a new version one day that is more strict with the data, e.g. return objects from methods, not arrays, etc?

I&#039;ve thought about it.  I might come out with something that uses the existing class as a data access backend with the objects built ontop of it.</description>
		<content:encoded><![CDATA[<p>>I just wanted to say a thank you. I needed a quick and easy way to grab data from the flickr API and yours did just the trick.</p>
<p>You&#039;re welcome! I&#039;m glad it is useful.</p>
<p>>Out of interest, will be creating a new version one day that is more strict with the data, e.g. return objects from methods, not arrays, etc?</p>
<p>I&#039;ve thought about it.  I might come out with something that uses the existing class as a data access backend with the objects built ontop of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Melrose</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-86976</link>
		<dc:creator>Stephen Melrose</dc:creator>
		<pubDate>Tue, 24 Mar 2009 14:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-86976</guid>
		<description>I just wanted to say a thank you. I needed a quick and easy way to grab data from the flickr API and yours did just the trick.

Out of interest, will be creating a new version one day that is more strict with the data, e.g. return objects from methods, not arrays, etc?</description>
		<content:encoded><![CDATA[<p>I just wanted to say a thank you. I needed a quick and easy way to grab data from the flickr API and yours did just the trick.</p>
<p>Out of interest, will be creating a new version one day that is more strict with the data, e.g. return objects from methods, not arrays, etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://phpflickr.com/2008/12/18/phpflickr-2301/comment-page-1/#comment-86893</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 23 Mar 2009 04:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://phpflickr.com/?p=179#comment-86893</guid>
		<description>That should work if you have a valid token with write permissions.  Use auth_checkToken() to make sure it&#039;s all good.  Also, you might try setting the third parameter in the phpFlickr() constructor to true. That will make it spit out any errors it comes across.</description>
		<content:encoded><![CDATA[<p>That should work if you have a valid token with write permissions.  Use auth_checkToken() to make sure it&#039;s all good.  Also, you might try setting the third parameter in the phpFlickr() constructor to true. That will make it spit out any errors it comes across.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
