<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss version="2.0">

<!-- generator="phpcookies" -->

	<channel>

		<title>PhpCookies</title> 

		<link>http://www.phpcookies.com/</link> 

		<description>PhpCookies</description> 
		
  <image>
    <url>http://www.phpcookies.com/img/logo.jpg</url>
    <title>PhpCookies</title>
    <link>http://www.phpcookies.com/</link>
  </image>
	
		<language>en-us</language> 

		<copyright>Copyright 2001-2010 phpcookies</copyright> 

		<docs>http://blogs.law.harvard.edu/tech/rss</docs> 

		<generator>GroupPlatform.com</generator> 






		<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/phpcookies" type="application/rss+xml" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">phpcookies</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
			<title>Crunch crunch</title>
						<description>
					 <![CDATA[ Hello all!<br />
<br />
How are you doing? Still crunching on those nice cookies? Maybe. Well, I'm back to tell some things, and see if there is still an audience willing to listen to my PHP ramblings. First, let me tell you my "personal situation". Wow, that's sound like it's all horrible. It's not.<br />
<br />
During the last period of time, I have been working on starting up a company. Also, at school, the pressure was way higher than expected. Much tests, that eventually count for my exam sometimes, and sometimes regular tests. And much much homework. As you might understand, it's not easy to sleep then, nor is it easy to pay much time to writing for this blog.<br />
<br />
<strong>Solution?</strong><br />
The solution is, slowing down a bit. I've been realizing that I paid too much time starting up the company with the guy I did. It went smooth (most of the time), and it was much fun, and this is a very nice opportunity. But not for a 15 year old boy at the other end of the world (it was in America), who's still attending school at the busiest period of it. So, solution is to quit building up the company, getting clients. Chapter closed.<br />
<br />
<strong>... and that means?</strong><br />
That I can get high marks for all my tests, paying more attention to school. Also, this means I free up time to sleep (yes!) and it allows me to start writing on PhpCookies again! In the beginning, I will take it easy, and probably after 2 weeks from now, I really start posting, because next week I'm away for holidays.<br />
<br />
<strong>So I want to know, is there still an audience for this blog? Or is it wasted time?</strong><br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/crunch-crunch.html">Crunch crunch</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/crunch-crunch.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/crunch-crunch.html</link>
			<guid>http://www.phpcookies.com/permalink/crunch-crunch.html</guid>
			<pubDate>Tue, 19 Feb 2008 02:39:42 EST</pubDate>
		</item>




		<item>
			<title>Merry Christmas Everybody!</title>
						<description>
					 <![CDATA[ <img src="http://pic.groupplatform.com/phpcookies_Christmas_Tree.jpg" class="picturecenter"alt="Christmas_Tree.jpg" /><br />
<br />
You might have figured out, that I have been very very busy lately. School was one big disaster. So many tests these days, before christmas holiday. But, now finally I have christmas holiday, and I'm enjoying it. I hope to have more time soon to write some cool PHP posts, so get ready to read.<br />
<br />
<h1>For now, I want to wish you all a Happy Christmas and a great coding 2008.</h1><br />
<br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/merry-christmas-everybody.html">Merry Christmas Everybody!</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/merry-christmas-everybody.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/merry-christmas-everybody.html</link>
			<guid>http://www.phpcookies.com/permalink/merry-christmas-everybody.html</guid>
			<pubDate>Mon, 24 Dec 2007 15:01:23 EST</pubDate>
		</item>




		<item>
			<title>Affiliate PHP Coding Blog</title>
						<description>
					 <![CDATA[ <img src="http://pic.groupplatform.com/phpcookies_phpatm.jpg" class="pictureright" alt="phpatm.jpg" />My guess is many of the php coders reading this blog also dabble in the fine arts of affiliate marketing so I wanted to share a blog with you that I got an email "tip" about from someone nicknamed "mutt".  <br />
<br />
With a tagline like this "<b>Helping you put more money in your pocket faster through PHP coding</b>" you might want to check it out:  <a href="http://oooff.com/php-affiliate-seo-blog/">Affiliate, SEO and PHP Coding Blog - OOOFF.com</a><br />
<br />
A couple interesting tutorials just from a quick browse of the front page:<br />
<br />
<a href="http://oooff.com/php-affiliate-seo-blog/php-automation-coding/easy-php-proxy-checker-writing-tutorial/">Easy PHP Proxy Checker Tutorial</a><br />
<br />
<a href="http://oooff.com/php-affiliate-seo-blog/php-automation-coding/how-to-track-converting-keywords-for-your-affiliate-marketing-advertising-using-php/">How to Track Converting Keywords for your Affiliate Marketing advertising using PHP</a><br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/affiliate-php-coding-blog.html">Affiliate PHP Coding Blog</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/affiliate-php-coding-blog.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/affiliate-php-coding-blog.html</link>
			<guid>http://www.phpcookies.com/permalink/affiliate-php-coding-blog.html</guid>
			<pubDate>Wed, 12 Dec 2007 21:29:46 EST</pubDate>
		</item>




		<item>
			<title>Fantastic videos ...</title>
						<description>
					 <![CDATA[ Hey all ... I stumbled upon (no, not through stumbleupon.com ...) some videos where Googlers are talking. To be more specific, on one Douglas Merrill (VP of Engineering, and a GREAT guy... I want his e-mail address!), and on the other Larry Page and Sergey Brin (I want their e-mail addresses too. Especially Sergey. He is such a genius. You too, Larry).<br />
<br />
So... in one of these videos, Douglas Merrill is at a university in Prague. He talks about the problems you face when building a search engine. He is a great, and interactive, speaker.<br />
<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/syKY8CrHkck&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/syKY8CrHkck&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object><br />
<br />
And, in the other, (which is significantly shorter ...) the founders of Google, Larry Page and Sergey Brin, are talking about Google, about some traffic stuff, and you know ... not much. But it's a great talk anyway ;)<br />
<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/2FSE3TNFkJQ&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/2FSE3TNFkJQ&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object><br />
<br />
<h3>Yep, this isn't pure PHP. But it's related to search engines. AND I'M SEARCH ENGINE MINDED!</h3><br />
<br />
What do you think? Did you enjoy the videos, or are you not even going to look at them?<br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/fantastic-videos.html">Fantastic videos ...</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/fantastic-videos.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/fantastic-videos.html</link>
			<guid>http://www.phpcookies.com/permalink/fantastic-videos.html</guid>
			<pubDate>Thu, 06 Dec 2007 14:26:37 EST</pubDate>
		</item>




		<item>
			<title>What PHP Editor Do You use?</title>
						<description>
					 <![CDATA[ <img src="http://pic.groupplatform.com/phpcookies_phpedit.jpg" class="pictureright" alt="phpedit.jpg" />A php editor is a program that you edit php with.  What is the best php editor?<br />
<br />
Currently I use <a href="http://www.htmlkit.com/">htmlkit</a> which isn't designed specifically for php and lacks a bunch.<br />
<br />
<b>Things at the top of my required list for my php editor:</b><br />
<br />
Intellisense - I wish it would guess what i'm trying to type and tell me the options avaialable pluse the syntax.  For instance if i typed in the first few letters of explode() it would tell me the syntax.<br />
<br />
Indenting - I would love my editor to indent my php code properly.<br />
<br />
Color coding - i wish my editor would have different colors for variables, loops, etc.<br />
<br />
<b>What php editor do you use or recommend?</b><br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/what-php-editor-do-you-use.html">What PHP Editor Do You use?</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/what-php-editor-do-you-use.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/what-php-editor-do-you-use.html</link>
			<guid>http://www.phpcookies.com/permalink/what-php-editor-do-you-use.html</guid>
			<pubDate>Wed, 28 Nov 2007 13:58:35 EST</pubDate>
		</item>




		<item>
			<title>IF-Statements... Your Ever Lasting Problem Explained</title>
						<description>
					 <![CDATA[ I was talking with someone on MSN, who explained me that she had problems with if-statements. That it was like learning maths. I don't have much problems with it, but others may have.<br />
<br />
So today, let's talk about the basics of if-statements.<br />
<br />
<strong>What IS it?</strong><br />
They are the possibility to check variables (that's just one thing) against another variable. Or value against variable (or otherwise).<br />
<br />
An example can be a simple dice. I first use the rand() function to produce a random number between 1 and 6. Then, if the dice returns 5, I output something. Basically, this is the #5 Dice game (doesn't exists, I hope?). When the dice returns 5, the player wins, else the player loses.<br />
<br />
<blockquote>&lt;?php<br />
$dice = rand(1,6);<br />
if($dice == 5)<br />
{<br />
  echo "You won!";<br />
}else{<br />
  echo "You loose!";<br />
}<br />
?></blockquote><br />
<br />
Fairly simple... right? Note that if you use $dice = 5, you actually assign the number 5 to the variable $dice, which will usually always return to true, meaning that it looks like the dice always returns 5 in this case!<br />
<br />
<strong>What's more?</strong><br />
What if you have the same dice, but now if the dice is 4,5,6 (basically, any number higher than 3), the player wins, else looses. This can be done in two different ways. Either check whether the number is higher than 3, or whether the number is 4 or higher. When doing higher than 3:<br />
<br />
<blockquote>if($dice > 3)</blockquote><br />
<br />
When doing 4 or higher:<br />
<br />
<blockquote>if($dice >= 4)</blockquote><br />
<br />
<strong>This isn't acracadabra, right!?</strong><br />
Let's move on! The type comparing operator, === and !==. This will check if the types of the two values match, in addition to the value. For example:<br />
<br />
<blockquote>&lt;?php<br />
if((int) 5 == "5")<br />
{<br />
  echo "Exactly the same!";<br />
}<br />
if((int) 5 === "5")<br />
{<br />
  echo "Exactly the same!";<br />
}<br />
?></blockquote><br />
<br />
You would guess that 5 is still 5 right? But the second if-statements says, hey, the first one is an integer, the other one is a string!<br />
<br />
Now, on to the next example: the dice must NOT return 5, or the player will loose.<br />
<br />
<blockquote>if($dice != 5)<br />
{<br />
  echo "You won!";<br />
}</blockquote><br />
<br />
And another example, the dice must be either 1 or 6, in order for the player to win.<br />
<blockquote>if($dice == 1 || $dice == 6)<br />
{<br />
  echo "You won";<br />
}</blockquote><br />
<br />
As you can see, || means OR. If you want to do AND, you do &&. With the OR statements, both sides of the || can be true, with the AND statement, both must be. We also have the exclusive or, or XOR. Then either one must be true, but NOT both. For example, we have two dices. One of them must be the number 1, but NOT BOTH!<br />
<br />
<blockquote>&lt;?php<br />
$dice_one = rand(1,6);<br />
$dice_two = rand(1,6);<br />
if($dice_one == 1 ^ $dice_two == 1)<br />
{<br />
	echo "You won!";<br />
}<br />
?></blockquote><br />
<br />
<h3>I think that's enough brain-cracking for today.</h3><br />
Good luck using this ;)<br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/if-statements-your-ever-lasting-problem-explained.html">IF-Statements... Your Ever Lasting Problem Explained</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/if-statements-your-ever-lasting-problem-explained.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/if-statements-your-ever-lasting-problem-explained.html</link>
			<guid>http://www.phpcookies.com/permalink/if-statements-your-ever-lasting-problem-explained.html</guid>
			<pubDate>Sun, 25 Nov 2007 07:06:49 EST</pubDate>
		</item>




		<item>
			<title>Some common PHP mistakes.</title>
						<description>
					 <![CDATA[ I just wanted to quickly share with you this link I've found over at the devzone from <a href = "http://www.zend.com">Zend</a>. It's an article about "PHP Gotcha's".<br />
<br />
<a href = "http://devzone.zend.com/article/168-PHP-Gotchas">Link to the article</a><br />
<br />
There are some common glitches, and mistakes made by programmers (also, make sure to checkout the comments section!)<br />
<br />
Do you have any to add?<br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/some-common-php-mistakes.html">Some common PHP mistakes.</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/some-common-php-mistakes.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/some-common-php-mistakes.html</link>
			<guid>http://www.phpcookies.com/permalink/some-common-php-mistakes.html</guid>
			<pubDate>Tue, 20 Nov 2007 16:56:32 EST</pubDate>
		</item>




		<item>
			<title>Amazon Example Query Using The Amazon Rest API To Return Amazon Products</title>
						<description>
					 <![CDATA[ The following code example will show you how to query the amazon.com database and return products you requested with your affiliate code, some pictures, and editorial reviews.  When finished you should be able to make a basic amazon request and return the unformatted result in a php page.<br />
<br />
For an overview of what a REST api is see the video <a href="http://www.phpcookies.com/permalink/rest-api-in-plain-english.html">Rest Api In Plain English</a>.<br />
<br />
<h2>Set Some Basic Variables</h2><br />
<br />
You need to provide your amazon developer key, associate tag, some keywords, and a search index to make a query.  We do that with our first block of code:<br />
<br />
<blockquote>//change these variables to  yours<br />
$amazonid = ""; //your developer key<br />
$amazontag="45n5-20";//your associates Id to get paid<br />
$keywords="make money";//your keywords to search<br />
$safequery=urlencode($keywords); //make the keywords url friendly<br />
$searchindex="Blended"; //change to the index you want to search<br />
</blockquote><br />
<br />
<h2>Create The Url To Request The Info From Amazon</h2><br />
<br />
When using amazon's rest api you provide them with a URL request and they will return an answer.  Here is the url construction with our variables in the url:<br />
<br />
<blockquote>////now build the url like amazon wants it<br />
$whaturl="http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService";<br />
$whaturl.="&IdType=ASIN&ResponseGroup=Large&SearchIndex=" .  $searchindex;<br />
$whaturl.="&Operation=ItemSearch&Keywords=" . $safequery;<br />
$whaturl.="&AWSAccessKeyId=" . $amazonid; <br />
$whaturl.="&AssociateTag=" . $amazontag . "&Version=2007-05-14";<br />
</blockquote><br />
<br />
<h2>Connect To Amazon And Get The Result</h2><br />
<br />
We use CURL to connect to amazon and return their xml answer in a variable with the following code:<br />
<br />
<blockquote>//let's connect to the amazon url with curl and grab the response<br />
//we'll store the response in the $data variable<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_URL, $whaturl);<br />
$data = curl_exec($ch);<br />
curl_close($ch);<br />
</blockquote><br />
<br />
<h2>Convert the Amazon Response to XML that PHP can understand</h2><br />
<br />
PHP5 has simplexml that really makes working with XML very easy.  Simply load a text variable with xml data into an xml element and you can traverse the nodes all day long.<br />
<br />
<b>note:  to see the notes available uncomment the $whaturl variable and copy and paste that into the browser to see the raw result amazon returns</b><br />
<br />
Here's the code to load the amazon response into XML that PHP can understand:<br />
<br />
<blockquote>//now we will create a php element out of the data so <br />
//we can then loop through and grab our results<br />
$xml = new SimpleXMLElement($data);<br />
</blockquote><br />
<br />
Finally we want to loop through the XML data and print out the data we want to display to users.  See the previous step's note on how to see all of the nodes returned by amazon.  See <a href="http://php.net/simplexml">this link on how to traverse xml nodes with php</a>.<br />
<br />
<blockquote>//now we loop through the xml document to grab what we want<br />
if ($xml-&gt;Items-&gt;Item) {<br />
 $x=0;<br />
 foreach ($xml-&gt;Items-&gt;Item as $item) {<br />
		echo "&lt;a href=\"http://www.amazon.com/exec/obidos/asin/" . $item-&gt;ASIN . "/$amazontag\"&gt;&lt;img border=\"0\" src=\"" . $item-&gt;SmallImage-&gt;URL . "\" style=\"margin-right:10px;\" align=\"left\" alt=\"\" /&gt;&lt;/a&gt;";<br />
		echo "&lt;b&gt;" .  $item-&gt;ItemAttributes-&gt;Title . "&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;";<br />
		echo "&lt;a href=\"http://www.amazon.com/exec/obidos/asin/" . $item-&gt;ASIN . "/$amazontag\"&gt;View This Product at Amazon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;";<br />
		echo $item-&gt;EditorialReviews-&gt;EditorialReview-&gt;Content . "&lt;br /&gt;&lt;br /&gt;";<br />
		echo "&lt;div style=\"clear:both\"&gt;&lt;/div&gt;";<br />
}}	<br />
</blockquote><br />
<br />
<h2>All together now</h2><br />
<br />
Here is the code all put together now:<br />
<br />
<blockquote>&lt;?php<br />
<br />
//change these variables to  yours<br />
$amazonid = ""; //your developer key<br />
$amazontag="45n5-20";//your associates Id to get paid<br />
$keywords="make money";//your keywords to search<br />
$safequery=urlencode($keywords); //make the keywords url friendly<br />
$searchindex="Blended"; //change to the index you want to search<br />
<br />
////now build the url like amazon wants it<br />
$whaturl="http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService";<br />
$whaturl.="&IdType=ASIN&ResponseGroup=Large&SearchIndex=" .  $searchindex;<br />
$whaturl.="&Operation=ItemSearch&Keywords=" . $safequery;<br />
$whaturl.="&AWSAccessKeyId=" . $amazonid; <br />
$whaturl.="&AssociateTag=" . $amazontag . "&Version=2007-05-14";<br />
<br />
//uncomment the next line to view the xml returned				<br />
//echo $whaturl . "&lt;br /&gt;";<br />
					<br />
//let's connect to the amazon url with curl and grab the response<br />
//we'll store the response in the $data variable<br />
$ch = curl_init();<br />
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($ch, CURLOPT_URL, $whaturl);<br />
$data = curl_exec($ch);<br />
curl_close($ch);<br />
<br />
//now we will create a php element out of the data so <br />
//we can then loop through and grab our results<br />
$xml = new SimpleXMLElement($data);<br />
<br />
//now we loop through the xml document to grab what we want<br />
if ($xml-&gt;Items-&gt;Item) {<br />
 $x=0;<br />
 foreach ($xml-&gt;Items-&gt;Item as $item) {<br />
		echo "&lt;a href=\"http://www.amazon.com/exec/obidos/asin/" . $item-&gt;ASIN . "/$amazontag\"&gt;&lt;img border=\"0\" src=\"" . $item-&gt;SmallImage-&gt;URL . "\" style=\"margin-right:10px;\" align=\"left\" alt=\"\" /&gt;&lt;/a&gt;";<br />
		echo "&lt;b&gt;" .  $item-&gt;ItemAttributes-&gt;Title . "&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;";<br />
		echo "&lt;a href=\"http://www.amazon.com/exec/obidos/asin/" . $item-&gt;ASIN . "/$amazontag\"&gt;View This Product at Amazon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;";<br />
		echo $item-&gt;EditorialReviews-&gt;EditorialReview-&gt;Content . "&lt;br /&gt;&lt;br /&gt;";<br />
		echo "&lt;div style=\"clear:both\"&gt;&lt;/div&gt;";<br />
}}	<br />
<br />
?&gt;</blockquote><br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/amazon-example-query-using-the-amazon-rest-api-to-.html">Amazon Example Query Using The Amazon Rest API To Return Amazon Products</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/amazon-example-query-using-the-amazon-rest-api-to-.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/amazon-example-query-using-the-amazon-rest-api-to-.html</link>
			<guid>http://www.phpcookies.com/permalink/amazon-example-query-using-the-amazon-rest-api-to-.html</guid>
			<pubDate>Sun, 18 Nov 2007 20:58:29 EST</pubDate>
		</item>




		<item>
			<title>SimplePie. The best pie you will ever get!</title>
						<description>
					 <![CDATA[ <img src="http://pic.groupplatform.com/phpcookies_logo_simplepie_horizontal.jpg" class="pictureright"alt="logo_simplepie_horizontal.jpg" />So, I was wondering what Mark used for grabbing RSS articles. I used the MagPieRSS script, but Mark recommended me <a href="http://simplepie.org/">SimplePie</a>. This truelly is the best pie you will ever get. Honestly. At least, it helped to make my life one or two steps easier, in addition to MagPieRSS.<br />
<br />
<strong>Let me explain</strong><br />
MagPieRSS will grab the feed, and then process it, and return a big object with all the rss feed items, and tags and whatever in it. You then go through all of these items, and find out what you have to use in order to display the content for example. (Some feeds use <description> others use <content> others use ... well, you know what I mean). And that is what made it so stupid. Having multiple if statements and whatever, just to check out what the content tag was, what the date tag was.<br />
<br />
SimplePie is different. It includes the most popular tags, and automatically detects which one to use for the feed. You simple use a function from a class, and voila, you have the content, date and title, all in one place.<br />
<br />
<strong>Auto-discovery</strong><br />
Also, SimplePie has some basic auto-feed discovery built-in. You just say <a href="http://www.phpcookies.com">phpcookies.com</a>, and it will go and look for the feed on that particular site.<br />
<br />
<h3>So once again, <a href="http://simplepie.org/">SimplePie</a> ROCKS!</h3><br />
Thanks Mark :)<br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/simplepie-the-best-pie-you-will-ever-get.html">SimplePie. The best pie you will ever get!</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/simplepie-the-best-pie-you-will-ever-get.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/simplepie-the-best-pie-you-will-ever-get.html</link>
			<guid>http://www.phpcookies.com/permalink/simplepie-the-best-pie-you-will-ever-get.html</guid>
			<pubDate>Sun, 18 Nov 2007 12:32:30 EST</pubDate>
		</item>




		<item>
			<title>Rest Api In Plain English</title>
						<description>
					 <![CDATA[ Before I give any code samples here for using api's I thought I'd try to explain in plain english what exactly an API is.<br />
<br />
<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/L21y39nry8I&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/L21y39nry8I&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object><br />
<br />
For more info:<br />
<br />
<a href="http://www.phpcookies.com/permalink/php-and-xml-they-are-friends.html">PHP And XML. They Are Friends!</a><br />
<br />
<a href="http://blog.unitedheroes.net/curl/">PHP, CURL, and YOU!</a><br /><br />Add your comments by visiting the original post: <a href="http://www.phpcookies.com/permalink/rest-api-in-plain-english.html">Rest Api In Plain English</a><br /><br /><br /><br /><hr /><br />The preceding text is Copyright <a href="http://www.phpcookies.com/permalink/rest-api-in-plain-english.html">http://www.phpcookies.com/</a> for fun and profit - <a href="http://www.phpcookies.com/about.php">Full Disclosure</a><hr>]]> 
			</description>			<link>http://www.phpcookies.com/permalink/rest-api-in-plain-english.html</link>
			<guid>http://www.phpcookies.com/permalink/rest-api-in-plain-english.html</guid>
			<pubDate>Wed, 14 Nov 2007 17:53:04 EST</pubDate>
		</item>


	</channel>

</rss>
