<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>PHPExcel - OpenXML - Create Excel2007 documents in PHP - Spreadsheet engine</title><link>http://phpexcel.codeplex.com/Project/ProjectRss.aspx</link><description>Project providing a set of classes for the PHP programming language, which allow you to write to and read from different file formats, like Excel 2007, PDF, HTML, ... This project is built around M...</description><item><title>New Post: File upload security? Proving a spreadsheet is really a spreadsheet</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61483</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&lt;em&gt;&amp;gt;&amp;gt; Are there any other security tips?&lt;/em&gt;&lt;br&gt; &lt;br&gt;We should probably not call this a security tip. Rather it's about providing good error messages to the user if they upload wrong files accidentally. The above should suffice.&lt;/p&gt;&lt;/div&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 23:24:55 GMT</pubDate><guid isPermaLink="false">New Post: File upload security? Proving a spreadsheet is really a spreadsheet 20090704112455P</guid></item><item><title>New Post: File upload security? Proving a spreadsheet is really a spreadsheet</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61483</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I really like 2. better!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are there any other security tips?&lt;/p&gt;&lt;/div&gt;</description><author>cdevidal</author><pubDate>Sat, 04 Jul 2009 23:11:23 GMT</pubDate><guid isPermaLink="false">New Post: File upload security? Proving a spreadsheet is really a spreadsheet 20090704111123P</guid></item><item><title>New Post: File upload security? Proving a spreadsheet is really a spreadsheet</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61483</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;1.&lt;br&gt; With Excel5 reader, if the file is not a valid BIFF5 or BIFF8 Excel file (covering Excel 5.0, 95, 97, 2000, XP, 2003 formats), then it will throw an exception.&lt;br&gt;&lt;br&gt;Therefore you can do like this:&lt;br&gt;&lt;br&gt;&lt;span style="font-family:Courier New"&gt;$objReader = PHPExcel_IOFactory::createReader('Excel5');&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;$objReader-&amp;gt;setReadDataOnly(true);&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;try {&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objPHPExcel = $objReader-&amp;gt;load($_FILES['uploadedfile']['name']);&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;} catch (Exception $e) {&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // something went wrong&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $e-&amp;gt;getMessage();&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;/span&gt;&lt;br style="font-family:Courier New"&gt;&lt;span style="font-family:Courier New"&gt;}&lt;/span&gt;&lt;br&gt;&lt;br&gt; It may not be good to discard uploaded files just because file extension is not as expected. Users can accidentally alter file extension to something other than xls. The above will read the file even with wrong file extension.&lt;br&gt; &lt;br&gt; 2.&lt;br&gt; You may instead want to use the below method. It works similarly, but will automatically resolve file type and invoke the correct reader. You probably also want to accept Excel 2007 (xlsx files). With the below code you don't have to worry whether users have saved as xlsx or xls (or even csv).&lt;br&gt; &lt;br&gt; &lt;span style="font-family:Courier New"&gt;try {&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $objPHPExcel = &lt;span style="background-color:#ffff00;font-family:Courier New"&gt;PHPExcel_IOFactory::load($_FILES['uploadedfile']['name']);&lt;/span&gt;&lt;/span&gt;&lt;br&gt; &lt;span style="font-family:Courier New"&gt;} catch (Exception $e) {&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // something went wrong&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo $e-&amp;gt;getMessage();&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit;&lt;/span&gt;&lt;br style="font-family:Courier New"&gt; &lt;span style="font-family:Courier New"&gt;}&lt;/span&gt;&lt;br&gt; &lt;br&gt; The drawback with this method is that you cannot use &lt;span style="font-family:Courier New"&gt;setReadDataOnly(true)&lt;/span&gt;, but with recent improvements in speed (since PHPExcel 1.6.7), there is not much gain anymore using that so I wouldn't worry about that.&lt;br&gt; &lt;br&gt; Download latest source code here:&lt;br&gt; &lt;a href="../SourceControl/ListDownloadableCommits.aspx"&gt;http://phpexcel.codeplex.com/SourceControl/ListDownloadableCommits.aspx&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 22:43:11 GMT</pubDate><guid isPermaLink="false">New Post: File upload security? Proving a spreadsheet is really a spreadsheet 20090704104311P</guid></item><item><title>New Post: File upload security? Proving a spreadsheet is really a spreadsheet</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61483</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Has anyone written any code which can verify that the file uploaded really is an Excel document? I have this but I don't know if it's enough:&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;if ( strToLower ( $path_info['extension'] ) != 'xls' )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;You did not upload an Excel 2000/XP/2003 (.xls) file, please go back and try again!&amp;lt;br /&amp;gt;\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end_HTML ( );&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;$objReader = PHPExcel_IOFactory::createReader('Excel5');&lt;/p&gt;
&lt;p&gt;$objReader-&amp;gt;setReadDataOnly(true);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if ( ! $objPHPExcel = $objReader-&amp;gt;load($_FILES['uploadedfile']['name']) )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;There was a problem reading the Excel file, please check the format and contents of this file and try again!&amp;lt;br /&amp;gt;\n&amp;quot;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;end_HTML ( );&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;/p&gt;&lt;/div&gt;</description><author>cdevidal</author><pubDate>Sat, 04 Jul 2009 22:05:32 GMT</pubDate><guid isPermaLink="false">New Post: File upload security? Proving a spreadsheet is really a spreadsheet 20090704100532P</guid></item><item><title>Source code checked in, #28100</title><link>http://phpexcel.codeplex.com/SourceControl/ListDownloadableCommits.aspx</link><description>Export SVN to CodePlex</description><author>maartenba</author><pubDate>Sat, 04 Jul 2009 07:39:58 GMT</pubDate><guid isPermaLink="false">Source code checked in, #28100 20090704073958A</guid></item><item><title>New Post: Excel5 Sheet-&gt;copy() memory usage</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61107</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Brilliant, thanks Koyama!&lt;/p&gt;&lt;/div&gt;</description><author>robdann</author><pubDate>Sat, 04 Jul 2009 06:40:23 GMT</pubDate><guid isPermaLink="false">New Post: Excel5 Sheet-&gt;copy() memory usage 20090704064023A</guid></item><item><title>New Post: Excel5 Sheet-&gt;copy() memory usage</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61107</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ok, I see the problem. If you are copying sheet from one file to another, instead of this:&lt;br&gt; &lt;br&gt; &lt;span style="font-family:Courier New"&gt;$objPHPExcel-&amp;gt;addSheet($copiedSheet);&lt;/span&gt;&lt;br&gt; &lt;br&gt;you need this:&lt;br&gt; &lt;br&gt; &lt;span style="font-family:Courier New"&gt;$objPHPExcel-&amp;gt;addExternalSheet($copiedSheet);&lt;/span&gt;&lt;br&gt; &lt;br&gt;&lt;/p&gt;&lt;/div&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 06:11:49 GMT</pubDate><guid isPermaLink="false">New Post: Excel5 Sheet-&gt;copy() memory usage 20090704061149A</guid></item><item><title>New Post: Excel5 Sheet-&gt;copy() memory usage</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61107</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Trying the following code I lose&amp;nbsp;all styles:&lt;/p&gt;
&lt;p&gt;&amp;lt;?&lt;br&gt;ini_set( 'memory_limit', '40M' );&lt;br&gt;set_include_path(get_include_path() . PATH_SEPARATOR . '.');&lt;br&gt;require_once(&amp;quot;./PHPExcel/IOFactory.php&amp;quot;);&lt;/p&gt;
&lt;p&gt;$objPHPExcel = new PHPExcel();&lt;br&gt;$objPHPExcel-&amp;gt;removeSheetByIndex(0);&lt;/p&gt;
&lt;p&gt;$reader = PHPExcel_IOFactory::createReader('Excel5');&lt;br&gt;$excel = $reader-&amp;gt;load('Template.xls');&lt;br&gt;$sheet = $excel-&amp;gt;getActiveSheet();&lt;br&gt;$copiedSheet = $sheet-&amp;gt;copy();&lt;br&gt;$objPHPExcel-&amp;gt;addSheet($copiedSheet);&lt;/p&gt;
&lt;p&gt;header(&amp;quot;Content-Type: application/x-excel5&amp;quot;);&lt;br&gt;header(&amp;quot;Content-Disposition: attachment;filename=Template.xls&amp;quot;);&lt;br&gt;header(&amp;quot;Content-Transfer-Encoding: binary &amp;quot;);&lt;/p&gt;
&lt;p&gt;$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');&lt;br&gt;$objWriter-&amp;gt;save('php://output');&lt;br&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><author>robdann</author><pubDate>Sat, 04 Jul 2009 05:56:32 GMT</pubDate><guid isPermaLink="false">New Post: Excel5 Sheet-&gt;copy() memory usage 20090704055632A</guid></item><item><title>New Post: Excel5 Sheet-&gt;copy() memory usage</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61107</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;This is strange. And you were getting styles before? Can you try to do a plain read / write of your template workbook and see if you lose styles?&lt;/p&gt;&lt;/div&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 05:46:45 GMT</pubDate><guid isPermaLink="false">New Post: Excel5 Sheet-&gt;copy() memory usage 20090704054645A</guid></item><item><title>Closed Issue: Excel5 reader OLE read failure with small Mac BIFF5 Excel files</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10252</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;60074&lt;br /&gt;&lt;br /&gt;PHPExcel_Reader_Excel5 fails completely with attached file.&lt;br /&gt;&lt;br /&gt;There is a similar issue for the php-excel-reader project on Google Code&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;php-excel-reader&amp;#47;issues&amp;#47;detail&amp;#63;id&amp;#61;25&lt;br /&gt;&lt;br /&gt;PHPExcel_Reader_Excel5 and php-excel-reader are based on the same library&amp;#58;&lt;br /&gt;https&amp;#58;&amp;#47;&amp;#47;sourceforge.net&amp;#47;projects&amp;#47;phpexcelreader&amp;#47;&lt;br /&gt;&lt;br /&gt;so it is not surprising that they share the same bug.&lt;br /&gt;Comments: &lt;p&gt;Fixed in SVN&lt;/p&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 05:40:17 GMT</pubDate><guid isPermaLink="false">Closed Issue: Excel5 reader OLE read failure with small Mac BIFF5 Excel files 20090704054017A</guid></item><item><title>New Post: Excel5 Sheet-&gt;copy() memory usage</title><link>http://phpexcel.codeplex.com/Thread/View.aspx?ThreadId=61107</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Koyama,&lt;/p&gt;
&lt;p&gt;I've updated to the latest source code and without changing my code I'm not getting the memory error anymore, but I don't get any styles either - is there an option I need to set to enable styles now?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;/div&gt;</description><author>robdann</author><pubDate>Sat, 04 Jul 2009 05:37:58 GMT</pubDate><guid isPermaLink="false">New Post: Excel5 Sheet-&gt;copy() memory usage 20090704053758A</guid></item><item><title>Commented Issue: Excel5 reader OLE read failure with small Mac BIFF5 Excel files</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10252</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;60074&lt;br /&gt;&lt;br /&gt;PHPExcel_Reader_Excel5 fails completely with attached file.&lt;br /&gt;&lt;br /&gt;There is a similar issue for the php-excel-reader project on Google Code&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;php-excel-reader&amp;#47;issues&amp;#47;detail&amp;#63;id&amp;#61;25&lt;br /&gt;&lt;br /&gt;PHPExcel_Reader_Excel5 and php-excel-reader are based on the same library&amp;#58;&lt;br /&gt;https&amp;#58;&amp;#47;&amp;#47;sourceforge.net&amp;#47;projects&amp;#47;phpexcelreader&amp;#47;&lt;br /&gt;&lt;br /&gt;so it is not surprising that they share the same bug.&lt;br /&gt;Comments: ** Comment from web user: koyama ** &lt;p&gt;There is already a bug report &amp;#43; fix for the PHP-ExcelReader project at SourceForge here&amp;#58;&lt;br /&gt;https&amp;#58;&amp;#47;&amp;#47;sourceforge.net&amp;#47;tracker&amp;#47;&amp;#63;func&amp;#61;detail&amp;#38;aid&amp;#61;1058233&amp;#38;group_id&amp;#61;99160&amp;#38;atid&amp;#61;623332&lt;/p&gt;&lt;p&gt;Bug is caused by root entry labeled by &amp;#34;R&amp;#34; in BIFF5 on Mac instead of &amp;#34;Root entry&amp;#34;.&lt;/p&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 05:29:09 GMT</pubDate><guid isPermaLink="false">Commented Issue: Excel5 reader OLE read failure with small Mac BIFF5 Excel files 20090704052909A</guid></item><item><title>Closed Feature: Eliminate dependency of an include path pointing to class directory</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10251</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;61324&lt;br /&gt;&lt;br /&gt;Having to set up an include_path pointing to the directory containing PHPExcel.php is not very convenient. It has been noted that an include path is not strictly necessary.&lt;br /&gt;&lt;br /&gt;For example, if one replaced lines like this in all the PHPExcel class files&amp;#58;&lt;br /&gt;&lt;br /&gt;require_once &amp;#39;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;with absolute paths&lt;br /&gt;&lt;br /&gt;require_once dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;&amp;#47;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;then the library will function without the include_path.&lt;br /&gt;&lt;br /&gt;What are advantages &amp;#47; disadvantages&amp;#63;&lt;br /&gt;Comments: &lt;p&gt;Fixed in SVN&lt;/p&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 00:10:29 GMT</pubDate><guid isPermaLink="false">Closed Feature: Eliminate dependency of an include path pointing to class directory 20090704121029A</guid></item><item><title>Commented Feature: Eliminate dependency of an include path pointing to class directory</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10251</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;61324&lt;br /&gt;&lt;br /&gt;Having to set up an include_path pointing to the directory containing PHPExcel.php is not very convenient. It has been noted that an include path is not strictly necessary.&lt;br /&gt;&lt;br /&gt;For example, if one replaced lines like this in all the PHPExcel class files&amp;#58;&lt;br /&gt;&lt;br /&gt;require_once &amp;#39;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;with absolute paths&lt;br /&gt;&lt;br /&gt;require_once dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;&amp;#47;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;then the library will function without the include_path.&lt;br /&gt;&lt;br /&gt;What are advantages &amp;#47; disadvantages&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: koyama ** &lt;p&gt;- Class files updated&lt;br /&gt;- Examples in the &amp;#34;Tests&amp;#34; folder updated&lt;br /&gt;- One paragraph removed in &amp;#34;PHPExcel developer documentation&amp;#34; 2.2 &amp;#34;Installation instructions&amp;#34;&lt;/p&gt;</description><author>koyama</author><pubDate>Sat, 04 Jul 2009 00:10:14 GMT</pubDate><guid isPermaLink="false">Commented Feature: Eliminate dependency of an include path pointing to class directory 20090704121014A</guid></item><item><title>Closed Issue: iconv notices when reading hyperlinks with PHPExcel_Reader_Excel5</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10259</link><description>PHPExcel_Reader_Excel5 in 1.6.7 uses mbstring if it is available. If mbstring is not available it uses iconv.&lt;br /&gt;This has been changed in PHPExcel 1.7.0 because some character sets no Mac are not supported by mbstring. iconv is the preferred library for handling strings.&lt;br /&gt;&lt;br /&gt;There is a bug in PHPExcel_Reader_Excel5 when reading hyperlinks. One sees notices like these when iconv is being used&amp;#58;&lt;br /&gt;&lt;br /&gt;Notice&amp;#58; iconv&amp;#40;&amp;#41; &amp;#91;function.iconv&amp;#93;&amp;#58; Detected an incomplete multibyte character in input string in C&amp;#58;&amp;#92;xampp&amp;#92;htdocs&amp;#92;_phpexcel&amp;#92;PHPExcelsvn&amp;#92;Classes&amp;#92;PHPExcel&amp;#92;Shared&amp;#92;String.php on line 259&lt;br /&gt;&lt;br /&gt;Test&amp;#58;&lt;br /&gt;----&lt;br /&gt;&amp;#36;reader &amp;#61; PHPExcel_IOFactory&amp;#58;&amp;#58;createReader&amp;#40;&amp;#39;Excel5&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#36;excel &amp;#61; &amp;#36;reader-&amp;#62;load&amp;#40;&amp;#39;hyperlink.xls&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Expected result&amp;#58;&lt;br /&gt;----&lt;br /&gt;File is read with no problems&lt;br /&gt;&lt;br /&gt;Actual result&amp;#58;&lt;br /&gt;----&lt;br /&gt;Notice&amp;#58; iconv&amp;#40;&amp;#41; &amp;#91;function.iconv&amp;#93;&amp;#58; Detected an incomplete multibyte character in input string in C&amp;#58;&amp;#92;xampp&amp;#92;htdocs&amp;#92;_phpexcel&amp;#92;PHPExcelsvn&amp;#92;Classes&amp;#92;PHPExcel&amp;#92;Shared&amp;#92;String.php on line 259&lt;br /&gt;&lt;br /&gt;&amp;#40;this happens in PHPExcel 1.6.7 when mbstring is not present&amp;#41;&lt;br /&gt;Comments: &lt;p&gt;Fixed in SVN&lt;/p&gt;</description><author>koyama</author><pubDate>Fri, 03 Jul 2009 20:12:10 GMT</pubDate><guid isPermaLink="false">Closed Issue: iconv notices when reading hyperlinks with PHPExcel_Reader_Excel5 20090703081210P</guid></item><item><title>Created Issue: iconv notices when reading hyperlinks with PHPExcel_Reader_Excel5</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10259</link><description>PHPExcel_Reader_Excel5 in 1.6.7 uses mbstring if it is available. If mbstring is not available it uses iconv.&lt;br /&gt;This has been changed in PHPExcel 1.7.0 because some character sets no Mac are not supported by mbstring. iconv is the preferred library for handling strings.&lt;br /&gt;&lt;br /&gt;There is a bug in PHPExcel_Reader_Excel5 when reading hyperlinks. One sees notices like these when iconv is being used&amp;#58;&lt;br /&gt;&lt;br /&gt;Notice&amp;#58; iconv&amp;#40;&amp;#41; &amp;#91;function.iconv&amp;#93;&amp;#58; Detected an incomplete multibyte character in input string in C&amp;#58;&amp;#92;xampp&amp;#92;htdocs&amp;#92;_phpexcel&amp;#92;PHPExcelsvn&amp;#92;Classes&amp;#92;PHPExcel&amp;#92;Shared&amp;#92;String.php on line 259&lt;br /&gt;&lt;br /&gt;Test&amp;#58;&lt;br /&gt;----&lt;br /&gt;&amp;#36;reader &amp;#61; PHPExcel_IOFactory&amp;#58;&amp;#58;createReader&amp;#40;&amp;#39;Excel5&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#36;excel &amp;#61; &amp;#36;reader-&amp;#62;load&amp;#40;&amp;#39;hyperlink.xls&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Expected result&amp;#58;&lt;br /&gt;----&lt;br /&gt;File is read with no problems&lt;br /&gt;&lt;br /&gt;Actual result&amp;#58;&lt;br /&gt;----&lt;br /&gt;Notice&amp;#58; iconv&amp;#40;&amp;#41; &amp;#91;function.iconv&amp;#93;&amp;#58; Detected an incomplete multibyte character in input string in C&amp;#58;&amp;#92;xampp&amp;#92;htdocs&amp;#92;_phpexcel&amp;#92;PHPExcelsvn&amp;#92;Classes&amp;#92;PHPExcel&amp;#92;Shared&amp;#92;String.php on line 259&lt;br /&gt;&lt;br /&gt;&amp;#40;this happens in PHPExcel 1.6.7 when mbstring is not present&amp;#41;&lt;br /&gt;</description><author>koyama</author><pubDate>Fri, 03 Jul 2009 20:10:06 GMT</pubDate><guid isPermaLink="false">Created Issue: iconv notices when reading hyperlinks with PHPExcel_Reader_Excel5 20090703081006P</guid></item><item><title>Commented Feature: Eliminate dependency of an include path pointing to class directory</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10251</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;61324&lt;br /&gt;&lt;br /&gt;Having to set up an include_path pointing to the directory containing PHPExcel.php is not very convenient. It has been noted that an include path is not strictly necessary.&lt;br /&gt;&lt;br /&gt;For example, if one replaced lines like this in all the PHPExcel class files&amp;#58;&lt;br /&gt;&lt;br /&gt;require_once &amp;#39;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;with absolute paths&lt;br /&gt;&lt;br /&gt;require_once dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;&amp;#47;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;then the library will function without the include_path.&lt;br /&gt;&lt;br /&gt;What are advantages &amp;#47; disadvantages&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: maartenba ** &lt;p&gt;Looks perfect&amp;#33;&lt;/p&gt;</description><author>maartenba</author><pubDate>Fri, 03 Jul 2009 16:36:45 GMT</pubDate><guid isPermaLink="false">Commented Feature: Eliminate dependency of an include path pointing to class directory 20090703043645P</guid></item><item><title>Commented Feature: Eliminate dependency of an include path pointing to class directory</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10251</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;61324&lt;br /&gt;&lt;br /&gt;Having to set up an include_path pointing to the directory containing PHPExcel.php is not very convenient. It has been noted that an include path is not strictly necessary.&lt;br /&gt;&lt;br /&gt;For example, if one replaced lines like this in all the PHPExcel class files&amp;#58;&lt;br /&gt;&lt;br /&gt;require_once &amp;#39;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;with absolute paths&lt;br /&gt;&lt;br /&gt;require_once dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;&amp;#47;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;then the library will function without the include_path.&lt;br /&gt;&lt;br /&gt;What are advantages &amp;#47; disadvantages&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: koyama ** &lt;p&gt;I did a quick test and it looks ok, Maarten. &amp;#40;except there should be an extra slash at the beginning&amp;#58; &amp;#39;&amp;#47;..&amp;#47;..&amp;#47;..&amp;#47;etc&amp;#47;etc&amp;#47;etc&amp;#47;&amp;#39;&amp;#41;&lt;/p&gt;&lt;p&gt;Attached sample patch for PHPExcel&amp;#47;Worksheet.php&lt;/p&gt;&lt;p&gt;If ok, we can assign this to me and I will update all files.&lt;/p&gt;</description><author>koyama</author><pubDate>Fri, 03 Jul 2009 16:16:01 GMT</pubDate><guid isPermaLink="false">Commented Feature: Eliminate dependency of an include path pointing to class directory 20090703041601P</guid></item><item><title>Commented Feature: Eliminate dependency of an include path pointing to class directory</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10251</link><description>From thread&amp;#58;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;phpexcel.codeplex.com&amp;#47;Thread&amp;#47;View.aspx&amp;#63;ThreadId&amp;#61;61324&lt;br /&gt;&lt;br /&gt;Having to set up an include_path pointing to the directory containing PHPExcel.php is not very convenient. It has been noted that an include path is not strictly necessary.&lt;br /&gt;&lt;br /&gt;For example, if one replaced lines like this in all the PHPExcel class files&amp;#58;&lt;br /&gt;&lt;br /&gt;require_once &amp;#39;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;with absolute paths&lt;br /&gt;&lt;br /&gt;require_once dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;&amp;#47;PHPExcel&amp;#47;Cell.php&amp;#39;&amp;#59;&lt;br /&gt;&lt;br /&gt;then the library will function without the include_path.&lt;br /&gt;&lt;br /&gt;What are advantages &amp;#47; disadvantages&amp;#63;&lt;br /&gt;Comments: ** Comment from web user: maartenba ** &lt;p&gt;Current require path styles is based on Zend Framework.&lt;/p&gt;&lt;p&gt;We can perhaps go for something like this&amp;#58;&lt;/p&gt;&lt;p&gt;if&amp;#40;&amp;#33;defined&amp;#40;&amp;#39;PHPEXCEL_ROOT&amp;#39;&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;  define&amp;#40;&amp;#39;PHPEXCEL_ROOT&amp;#39;, dirname&amp;#40;__FILE__&amp;#41; . &amp;#39;..&amp;#47;..&amp;#47;..&amp;#47;etc&amp;#47;etc&amp;#47;etc&amp;#47;&amp;#39;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;require_once PHPEXCEL_ROOT . &amp;#39;xxx.php&amp;#39;&amp;#59;&lt;/p&gt;&lt;p&gt;The define will of course be different for each file, but should get the right root folder every time.&lt;/p&gt;</description><author>maartenba</author><pubDate>Fri, 03 Jul 2009 12:27:00 GMT</pubDate><guid isPermaLink="false">Commented Feature: Eliminate dependency of an include path pointing to class directory 20090703122700P</guid></item><item><title>Commented Issue: Excel Reader 2007 problem with "shared" formulae when "master" is an error</title><link>http://phpexcel.codeplex.com/WorkItem/View.aspx?WorkItemId=10198</link><description>Excel Reader 2007 problem with &amp;#34;shared&amp;#34; formulae when master is an error&lt;br /&gt;&lt;br /&gt;The Excel 2007 reader identifies shared formulae and stores details of the first &amp;#40;master&amp;#41; formula in an array &amp;#40;&amp;#36;sharedFormulas&amp;#41;. Subsequent references to this shared formula have a formula value of an empty string, and the value read from the &amp;#36;sharedFormulas array is used to populate the actual formula for these cells.&lt;br /&gt;When the calculation of this formula returns a valid result, this is not a problem.&lt;br /&gt;However, if the calculated value of the first &amp;#40;master&amp;#41; is an error, so &amp;#36;cellDataType is &amp;#39;e&amp;#39;, then the formula is not written to the &amp;#36;sharedFormulas array. Only when the first _valid_ &amp;#40;non-erroneous&amp;#41; result of a shared formula is encountered is it written to the &amp;#36;sharedFormulas array, but the formula value in this case is an empty string, because this cell isn&amp;#39;t the _real_ master.&lt;br /&gt;&lt;br /&gt;This can be fixed by commenting out the special logic for erroneous cells between lines 592 and 600 of the Excel2007.php reader&amp;#59; and this fix appears to work. However, I don&amp;#39;t know if this simple solution is likely to have any side effects.&lt;br /&gt;Comments: ** Comment from web user: MarkBaker ** &lt;p&gt;Note that this applies to all types that are explicitly processed by the case statements for switch&amp;#40;&amp;#36;cellDataType&amp;#41; in the load&amp;#40;&amp;#41; method. e.g. As with results that have a &amp;#36;cellDataType of error, if &amp;#36;cellDataType is &amp;#39;b&amp;#39;, and a &amp;#34;master&amp;#34; shared formula gives a boolean result, the boolean case logic will be processed, ignoring the shared formula.&lt;/p&gt;&lt;p&gt;The fix will be rather more complex than simply commenting out a few lines.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><author>MarkBaker</author><pubDate>Fri, 03 Jul 2009 07:32:49 GMT</pubDate><guid isPermaLink="false">Commented Issue: Excel Reader 2007 problem with "shared" formulae when "master" is an error 20090703073249A</guid></item></channel></rss>