<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>The IT Kraut - PHP</title>
    <link>http://itkrauts.com/</link>
    <description>Milchtüte 2.0 - Sebastian Bauer's blog, revised.. - Adobe AIR, Android and more</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 22 Feb 2010 12:17:52 GMT</pubDate>

    <image>
        <url>http://itkrauts.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: The IT Kraut - PHP - Milchtüte 2.0 - Sebastian Bauer's blog, revised.. - Adobe AIR, Android and more</title>
        <link>http://itkrauts.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>phphatesme.com celebrates it's 500th!</title>
    <link>http://itkrauts.com/archives/24-phphatesme.com-celebrates-its-500th!.html</link>
            <category>PHP</category>
    
    <comments>http://itkrauts.com/archives/24-phphatesme.com-celebrates-its-500th!.html#comments</comments>
    <wfw:comment>http://itkrauts.com/wfwcomment.php?cid=24</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://itkrauts.com/rss.php?version=2.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    

    <author>nospam@example.com (Sebastian Bauer)</author>
    <content:encoded>
    &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.phphatesme.com&#039;]);&quot;  href=&quot;http://www.phphatesme.com&quot; target=&quot;_blank&quot;&gt;phphatesme.com&lt;/a&gt;, the largest and BEST PHP blog in Germany celebrates it&#039;s 500th birthday &lt;img src=&quot;http://itkrauts.com/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; And no, these are no 500 years, it&#039;s the 500th article! We wish Nils the absolutely best and are looking forward to the next 500 articles!&lt;br /&gt;
&lt;br /&gt;
Nils, thank you very much for this great blog! 
    </content:encoded>

    <pubDate>Mon, 22 Feb 2010 13:17:52 +0100</pubDate>
    <guid isPermaLink="false">http://itkrauts.com/archives/24-guid.html</guid>
    
</item>
<item>
    <title>fgetcsv in PHP fails with Mac-created files</title>
    <link>http://itkrauts.com/archives/21-fgetcsv-in-PHP-fails-with-Mac-created-files.html</link>
            <category>PHP</category>
    
    <comments>http://itkrauts.com/archives/21-fgetcsv-in-PHP-fails-with-Mac-created-files.html#comments</comments>
    <wfw:comment>http://itkrauts.com/wfwcomment.php?cid=21</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://itkrauts.com/rss.php?version=2.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    

    <author>nospam@example.com (Martin Mohr)</author>
    <content:encoded>
    Today I had a problem importing a CSV file in PHP. It seems that apache doesn&#039;t properly regognize the line endings from the csv file.&lt;br /&gt;
&lt;br /&gt;
When CSV the file has been created on a Mac, you will get problems when using fgetcsv to parse CSV files under PHP: The line endings are incorrectly interpreted.&lt;br /&gt;
&lt;br /&gt;
Try the following code:&lt;br /&gt;
&lt;br /&gt;
&lt;textarea name=&quot;code&quot; class=&quot;php&quot;&gt;
	ini_set(&#039;auto_detect_line_endings&#039;, true);
	$handle = fopen(&#039;file&#039;,&#039;r&#039;);
	while (($row = fgetcsv($fp, 1000, &#039;,&#039;)) !== false) {
		// Do Something...
	}
	...
&lt;/textarea&gt;&lt;br /&gt;
&lt;br /&gt;
&#039;auto_detect_line_endings&#039; enables PHP to interoperate with Macintosh systems and look after which line-ending conventions is used.&lt;br /&gt;
&lt;br /&gt;
The common line endings are:&lt;br /&gt;
\n (UNIX/Linux) &lt;br /&gt;
\n\r (Windows) &lt;br /&gt;
\r (Mac)&lt;br /&gt;
&lt;br /&gt;
Here is an wikipedia article about the historical reason behind different line ending at different platforms: &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/en.wikipedia.org/wiki/Newline#History&#039;]);&quot;  href=&quot;http://en.wikipedia.org/wiki/Newline#History&quot; target=&quot;_blank&quot;&gt;Newline History&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt; 
    </content:encoded>

    <pubDate>Fri, 08 Jan 2010 10:45:26 +0100</pubDate>
    <guid isPermaLink="false">http://itkrauts.com/archives/21-guid.html</guid>
    
</item>

</channel>
</rss>