<?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: Importing Excel files into MySQL with PHP</title>
	<atom:link href="http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Sat, 11 Feb 2012 23:43:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: supraja</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-27109</link>
		<dc:creator>supraja</dc:creator>
		<pubDate>Fri, 03 Feb 2012 10:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-27109</guid>
		<description>setOutputEncoding(&#039;CP1251&#039;);
$data-&gt;read(&#039;example.xls&#039;);
 
$conn = mysql_connect(&quot;10.40.20.201&quot;,&quot;root&quot;,&quot;tanla@123&quot;);
mysql_select_db(&quot;voiceobd&quot;,$conn);
 
for ($x = 2; $xsheets[0][&quot;cells&quot;]); $x++)
{
    $msisdn=$data-&gt;sheets[0][&quot;cells&quot;][$x][1];
    $achievement=$data-&gt;sheets[0][&quot;cells&quot;][$x][2];
    $date=$data-&gt;sheets[0][&quot;cells&quot;][$x][3];
    $sql=&quot;INSERT INTO achievementlist (msisdn,achieved,date)VALUES (&#039;$msisdn&#039;,$achievement,&#039;$date&#039;)&quot;;
    echo $sql.&quot;\n&quot;;
    mysql_query($sql);
}
?&gt;




after executing it is showing:

The filename example.xls is not readable</description>
		<content:encoded><![CDATA[<p>setOutputEncoding('CP1251');<br />
$data-&gt;read('example.xls');</p>
<p>$conn = mysql_connect("10.40.20.201","root","tanla@123");<br />
mysql_select_db("voiceobd",$conn);</p>
<p>for ($x = 2; $xsheets[0]["cells"]); $x++)<br />
{<br />
    $msisdn=$data-&gt;sheets[0]["cells"][$x][1];<br />
    $achievement=$data-&gt;sheets[0]["cells"][$x][2];<br />
    $date=$data-&gt;sheets[0]["cells"][$x][3];<br />
    $sql="INSERT INTO achievementlist (msisdn,achieved,date)VALUES ('$msisdn',$achievement,'$date')";<br />
    echo $sql."\n";<br />
    mysql_query($sql);<br />
}<br />
?&gt;</p>
<p>after executing it is showing:</p>
<p>The filename example.xls is not readable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asma</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-26954</link>
		<dc:creator>asma</dc:creator>
		<pubDate>Tue, 24 Jan 2012 10:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-26954</guid>
		<description>hello
the program  works but when I home him  I find these problems
&quot;Notice: Uninitialized string offset: 2199023255040 in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 27&quot; and 
Notice: Undefined index: in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 136
and 
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 131
plz help me</description>
		<content:encoded><![CDATA[<p>hello<br />
the program  works but when I home him  I find these problems<br />
"Notice: Uninitialized string offset: 2199023255040 in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 27" and<br />
Notice: Undefined index: in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 136<br />
and<br />
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /home/suptec/public_html/charlemagne/Excel/oleread.php on line 131<br />
plz help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blingue</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-26518</link>
		<dc:creator>Blingue</dc:creator>
		<pubDate>Fri, 30 Dec 2011 12:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-26518</guid>
		<description>Really Awesome script, work great for me. Thanks a lot!!!</description>
		<content:encoded><![CDATA[<p>Really Awesome script, work great for me. Thanks a lot!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daisy</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-25731</link>
		<dc:creator>Daisy</dc:creator>
		<pubDate>Sat, 19 Nov 2011 03:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-25731</guid>
		<description>Hi,

I am having a problem with when excel date. The value of date I got from excel shows only like this (Mar/Tue/2010201020102010). Anyone can help?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am having a problem with when excel date. The value of date I got from excel shows only like this (Mar/Tue/2010201020102010). Anyone can help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sem</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-25711</link>
		<dc:creator>Sem</dc:creator>
		<pubDate>Thu, 17 Nov 2011 18:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-25711</guid>
		<description>Hello,

I am having a hard time resolving a problem regarding utf-8 characterset, Turkish to be specific. I am trying to import a username that has some of these characters, İŞĞÇÜÖ.

if the column has İ in it, it interprets the rest of these unique characters just fine, meaning that it prints them out ok. but if there is no İ but other characters like ŞĞÇÜÖ, it does not interprets them as it should.

Any idea why?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am having a hard time resolving a problem regarding utf-8 characterset, Turkish to be specific. I am trying to import a username that has some of these characters, İŞĞÇÜÖ.</p>
<p>if the column has İ in it, it interprets the rest of these unique characters just fine, meaning that it prints them out ok. but if there is no İ but other characters like ŞĞÇÜÖ, it does not interprets them as it should.</p>
<p>Any idea why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martín Indico</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-25546</link>
		<dc:creator>Martín Indico</dc:creator>
		<pubDate>Fri, 28 Oct 2011 23:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-25546</guid>
		<description>Thanks for your post, tried it on my website and it worked very well with .xls spreadsheet excel 2003, I have not had any problems.</description>
		<content:encoded><![CDATA[<p>Thanks for your post, tried it on my website and it worked very well with .xls spreadsheet excel 2003, I have not had any problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harisoft</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-25535</link>
		<dc:creator>harisoft</dc:creator>
		<pubDate>Wed, 26 Oct 2011 11:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-25535</guid>
		<description>Not working. Getting message &quot;
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\Spreadsheet\Excel\Excel\Spreadsheet\Excel\Reader\oleread.php on line 172&quot;</description>
		<content:encoded><![CDATA[<p>Not working. Getting message "<br />
Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\Spreadsheet\Excel\Excel\Spreadsheet\Excel\Reader\oleread.php on line 172"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balanca</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-25237</link>
		<dc:creator>Balanca</dc:creator>
		<pubDate>Tue, 11 Oct 2011 07:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-25237</guid>
		<description>Can&#039;t get it to work!

It displays this message:

Fatal error: Maximum execution time of 30 seconds exceeded in oleread.inc on line 172

Can anybody help me, please.</description>
		<content:encoded><![CDATA[<p>Can't get it to work!</p>
<p>It displays this message:</p>
<p>Fatal error: Maximum execution time of 30 seconds exceeded in oleread.inc on line 172</p>
<p>Can anybody help me, please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arun</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-24948</link>
		<dc:creator>Arun</dc:creator>
		<pubDate>Wed, 28 Sep 2011 09:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-24948</guid>
		<description>Very nce. thanks ;)</description>
		<content:encoded><![CDATA[<p>Very nce. thanks <img src='http://rackerhacker.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swaraaj</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-24451</link>
		<dc:creator>swaraaj</dc:creator>
		<pubDate>Wed, 07 Sep 2011 21:16:55 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-24451</guid>
		<description>Hi Nnamdi

$this-&gt;_ole = &amp; new OLERead(); (line 261a)

just remove the &#039;&amp;&#039; sign there and your script will be working this is really awesome script for exporting data from excel file to sql its really worth working with it.

thanks a lot 
for any query feel free to post here.</description>
		<content:encoded><![CDATA[<p>Hi Nnamdi</p>
<p>$this->_ole = &#038; new OLERead(); (line 261a)</p>
<p>just remove the '&#038;' sign there and your script will be working this is really awesome script for exporting data from excel file to sql its really worth working with it.</p>
<p>thanks a lot<br />
for any query feel free to post here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nnamdi</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-22930</link>
		<dc:creator>Nnamdi</dc:creator>
		<pubDate>Thu, 12 May 2011 08:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-22930</guid>
		<description>Good Morning Colleagues,

I get the exception message below, each time I run the codes above.


Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\LGHS\admin\Excel\reader.php on line 261</description>
		<content:encoded><![CDATA[<p>Good Morning Colleagues,</p>
<p>I get the exception message below, each time I run the codes above.</p>
<p>Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\LGHS\admin\Excel\reader.php on line 261</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Major Hayden</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-22693</link>
		<dc:creator>Major Hayden</dc:creator>
		<pubDate>Fri, 15 Apr 2011 11:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-22693</guid>
		<description>gk - 

Glad I could help!</description>
		<content:encoded><![CDATA[<p>gk - </p>
<p>Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gk</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-22687</link>
		<dc:creator>gk</dc:creator>
		<pubDate>Fri, 15 Apr 2011 07:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-22687</guid>
		<description>This is Awesome script and worked for me really very well....

Thanks a lot</description>
		<content:encoded><![CDATA[<p>This is Awesome script and worked for me really very well....</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agustu</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-15850</link>
		<dc:creator>Agustu</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-15850</guid>
		<description>thanks for the sharing.
but i&#039;m still confusing with your explanation above about:
&lt;blockquote cite=&quot;&quot;&gt; To work around a bug in PHPExcelReader, copy oleread.inc from the Excel directory into a new path:

Spreadsheet/Excel/Reader/OLERead.php

The PHPExcelReader code will expect OLERead.php to be in that specific location. Once that is complete, you’re ready to use the PHPExcelReader class.&lt;cite&gt;
Can you explanation that?&lt;/cite&gt;&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>thanks for the sharing.<br />
but i'm still confusing with your explanation above about:</p>
<blockquote cite=""><p> To work around a bug in PHPExcelReader, copy oleread.inc from the Excel directory into a new path:</p>
<p>Spreadsheet/Excel/Reader/OLERead.php</p>
<p>The PHPExcelReader code will expect OLERead.php to be in that specific location. Once that is complete, you’re ready to use the PHPExcelReader class.<cite><br />
Can you explanation that?</cite></p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Roper</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-15749</link>
		<dc:creator>Nick Roper</dc:creator>
		<pubDate>Sat, 16 Jan 2010 14:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-15749</guid>
		<description>Will this work on any server - does it need to be on Windows?</description>
		<content:encoded><![CDATA[<p>Will this work on any server - does it need to be on Windows?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: major</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-4293</link>
		<dc:creator>major</dc:creator>
		<pubDate>Thu, 13 Nov 2008 14:28:40 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-4293</guid>
		<description>@AR - Yes, that could be a problem.  The phpexcelreader class doesn&#039;t allow for reading in chunks. :-(

@OmahaVike - Try PHPExcel: http://www.codeplex.com/PHPExcel - It reads Excel 2007 documents.</description>
		<content:encoded><![CDATA[<p>@AR - Yes, that could be a problem.  The phpexcelreader class doesn't allow for reading in chunks. <img src='http://rackerhacker.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>@OmahaVike - Try PHPExcel: <a href="http://www.codeplex.com/PHPExcel" rel="nofollow">http://www.codeplex.com/PHPExcel</a> - It reads Excel 2007 documents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OmahaVike</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-4292</link>
		<dc:creator>OmahaVike</dc:creator>
		<pubDate>Thu, 13 Nov 2008 14:25:14 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-4292</guid>
		<description>Warning:  reader does not work with Excel 2007.  Author&#039;s email addy in the code is no longer valid, and it appears that the sourceforge project has been abandonded.</description>
		<content:encoded><![CDATA[<p>Warning:  reader does not work with Excel 2007.  Author's email addy in the code is no longer valid, and it appears that the sourceforge project has been abandonded.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AR</title>
		<link>http://rackerhacker.com/2008/11/07/importing-excel-files-into-mysql-with-php/#comment-4117</link>
		<dc:creator>AR</dc:creator>
		<pubDate>Sat, 08 Nov 2008 20:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/?p=601#comment-4117</guid>
		<description>Am I correct in saying line 4 reads the whole spreadsheet into memory?
Won&#039;t that have issues with huge files, like 10 or 20 sheets each with 64k lines in them?</description>
		<content:encoded><![CDATA[<p>Am I correct in saying line 4 reads the whole spreadsheet into memory?<br />
Won't that have issues with huge files, like 10 or 20 sheets each with 64k lines in them?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

