<?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: PHP + MySQL = CSV</title>
	<atom:link href="http://www.studiolounge.net/2009/04/03/php-mysql-csv/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 15 Jun 2010 03:20:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Adam Patterson</title>
		<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/comment-page-1/#comment-1998</link>
		<dc:creator>Adam Patterson</dc:creator>
		<pubDate>Fri, 03 Apr 2009 20:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiolounge.net/?p=1301#comment-1998</guid>
		<description>Good point, Updated post to reflect that advise. You never know what people would put for an address :)</description>
		<content:encoded><![CDATA[<p>Good point, Updated post to reflect that advise. You never know what people would put for an address :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/comment-page-1/#comment-1996</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 03 Apr 2009 19:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiolounge.net/?p=1301#comment-1996</guid>
		<description>You need to escape double quotes in the values. In your instance you probably know your address book entries don&#039;t contain any double quotes, but if an entr did contain a double quote it will break your CSV export.

str_replace(&#039;&quot;&#039;, &#039;&quot;&quot;&#039;, $value) will do it.</description>
		<content:encoded><![CDATA[<p>You need to escape double quotes in the values. In your instance you probably know your address book entries don&#8217;t contain any double quotes, but if an entr did contain a double quote it will break your CSV export.</p>
<p>str_replace(&#8216;&#8221;&#8216;, &#8216;&#8221;"&#8216;, $value) will do it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Lane</title>
		<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/comment-page-1/#comment-1994</link>
		<dc:creator>J Lane</dc:creator>
		<pubDate>Fri, 03 Apr 2009 18:47:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiolounge.net/?p=1301#comment-1994</guid>
		<description>I&#039;m not a big PHP guy, but as far as I remember (from what I do know), you can call any sort of command line operation (shell scripts, external binaries, whatever).

http://ca3.php.net/shell_exec

It probably doesn&#039;t really make a big difference, unless you&#039;re working with a huge data set, then you might get better performance out of the mysqldump route.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a big PHP guy, but as far as I remember (from what I do know), you can call any sort of command line operation (shell scripts, external binaries, whatever).</p>
<p><a href="http://ca3.php.net/shell_exec">http://ca3.php.net/shell_exec</a></p>
<p>It probably doesn&#8217;t really make a big difference, unless you&#8217;re working with a huge data set, then you might get better performance out of the mysqldump route.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Patterson</title>
		<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/comment-page-1/#comment-1993</link>
		<dc:creator>Adam Patterson</dc:creator>
		<pubDate>Fri, 03 Apr 2009 18:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiolounge.net/?p=1301#comment-1993</guid>
		<description>Can that be done from a php script? Never tried, but i was Just using an example to export responses or data. 
Not a backup.</description>
		<content:encoded><![CDATA[<p>Can that be done from a php script? Never tried, but i was Just using an example to export responses or data.<br />
Not a backup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J Lane</title>
		<link>http://www.studiolounge.net/2009/04/03/php-mysql-csv/comment-page-1/#comment-1992</link>
		<dc:creator>J Lane</dc:creator>
		<pubDate>Fri, 03 Apr 2009 18:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.studiolounge.net/?p=1301#comment-1992</guid>
		<description>Why not just use mysqldump?

mysqldump -u [username] -p -t -T/path/to/directory [database] --fields-enclosed-by=\; --fields-terminated-by=,</description>
		<content:encoded><![CDATA[<p>Why not just use mysqldump?</p>
<p>mysqldump -u [username] -p -t -T/path/to/directory [database] &#8211;fields-enclosed-by=\; &#8211;fields-terminated-by=,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
