<?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: Export MySQL database to an MS Excel format</title>
	<atom:link href="http://www.nazly.net/export-mysql-database-to-an-ms-excel-format/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nazly.net/export-mysql-database-to-an-ms-excel-format/</link>
	<description>Personal Weblog of Nazly Ahmed : Web Developer. PHP Addict. Wordpress Hacker. FOSS Enthusiast. (Micro)Blogger. Cricket Fanatic. Husband. Dad.</description>
	<lastBuildDate>Fri, 09 Dec 2011 16:56:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nazly</title>
		<link>http://www.nazly.net/export-mysql-database-to-an-ms-excel-format/#comment-1179</link>
		<dc:creator>Nazly</dc:creator>
		<pubDate>Fri, 10 Dec 2010 16:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nazly.net/export-mysql-database-to-an-ms-excel-format/#comment-1179</guid>
		<description>yes. its possible. It will require you to modify the code at the bottom. Remove the header() functions that force the browser to download the files. Also it&#039;s not required to output the contents of the file which means the echo also can go off. Use the below script to write the excel file on the server

&lt;pre lang=&quot;php&quot;&gt;
&lt;?php
file_put_contents(&#039;excel_file_name.xls&#039;, $dataStr);
?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>yes. its possible. It will require you to modify the code at the bottom. Remove the header() functions that force the browser to download the files. Also it&#8217;s not required to output the contents of the file which means the echo also can go off. Use the below script to write the excel file on the server</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'excel_file_name.xls'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dataStr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Ariel</title>
		<link>http://www.nazly.net/export-mysql-database-to-an-ms-excel-format/#comment-1178</link>
		<dc:creator>Ariel</dc:creator>
		<pubDate>Fri, 10 Dec 2010 15:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nazly.net/export-mysql-database-to-an-ms-excel-format/#comment-1178</guid>
		<description>Can this code be updated to export the file to the server instead of forcing the browser to download the file?</description>
		<content:encoded><![CDATA[<p>Can this code be updated to export the file to the server instead of forcing the browser to download the file?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

