PHP Classes

error

Recommend this page to a friend!

      PHP HTML Excel  >  All threads  >  error  >  (Un) Subscribe thread alerts  
Subject:error
Summary:error
Messages:8
Author:synthetron
Date:2016-10-07 12:06:49
 

  1. error   Reply   Report abuse  
Picture of synthetron synthetron - 2016-10-07 12:06:49
Parse error: syntax error, unexpected '[' in C:\wamp\www\welcome\phptools\htmlexcel-2016-09-29\HtmlExcel.php on line 9

  2. Re: error   Reply   Report abuse  
Picture of synthetron synthetron - 2016-10-07 12:22:18 - In reply to message 1 from synthetron
replace []
with
array()

  3. Re: error   Reply   Report abuse  
Picture of Gustavo Alves Gustavo Alves - 2016-10-07 16:18:22 - In reply to message 2 from synthetron
Fixed.
Thanks for your feedback!

  4. Re: error   Reply   Report abuse  
Picture of synthetron synthetron - 2016-10-07 16:40:47 - In reply to message 1 from synthetron
one more error when I open the xls

file extension and content do not match

  5. Re: error   Reply   Report abuse  
Picture of synthetron synthetron - 2016-10-07 16:48:27 - In reply to message 1 from synthetron
excel thinks it is mhtml file and not xls

  6. Re: error   Reply   Report abuse  
Picture of Gustavo Alves Gustavo Alves - 2016-10-07 17:12:25 - In reply to message 4 from synthetron
Hi synthetron.
You can bypass this message. My class creates a .mhtml file with a .xls extension, so it will be forced to open on Microsoft Excel. This class is purposed to be a simple gateway between HTML and XLS, without parsing and other complicated stuff.

Feel free to ask if you have any doubts.

Thanks!

  7. Re: error   Reply   Report abuse  
Picture of Prem Prakash Malviya Prem Prakash Malviya - 2018-01-19 10:43:04 - In reply to message 6 from Gustavo Alves
I want to change sheet name. Please Help.

  8. Re: error   Reply   Report abuse  
Picture of Ritor Ritor Ritor Ritor - 2018-10-30 11:00:44 - In reply to message 1 from synthetron
Errors with headers :\
*******
Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\gd\html2ex.php:1) in D:\OSPanel\domains\gd\HtmlExcel.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\gd\html2ex.php:1) in D:\OSPanel\domains\gd\HtmlExcel.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at D:\OSPanel\domains\gd\html2ex.php:1) in D:\OSPanel\domains\gd\HtmlExcel.php on line 25
MIME-Version: 1.0 X-Document-Type: Workbook Content-Type: multipart/related; boundary="----=_NextPart_01D21572.46A0BD00" ------=_NextPart_01D21572.46A0BD00 Content-Location: file:///C:/E64B5C52/spreadsheet.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" ------=_NextPart_01D21572.46A0BD00 Content-Location: file:///C:/E64B5C52/Html2Excel/stylesheet.css Content-Transfer-Encoding: quoted-printable Content-Type: text/css; charset="utf-8" .red { color: red; } ------=_NextPart_01D21572.46A0BD00 Content-Location: file:///C:/E64B5C52/Html2Excel/0.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"
1 2 3
4 5 6
7 8 9
------=_NextPart_01D21572.46A0BD00 Content-Location: file:///C:/E64B5C52/Html2Excel/1.htm Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"
First name Last name
John Doe
Jane Doe
------=_NextPart_01D21572.46A0BD00 Content-Location: file:///C:/E64B5C52/Html2Excel/filelist.xml Content-Transfer-Encoding: quoted-printable Content-Type: text/xml; charset="utf-8" ------=_NextPart_01D21572.46A0BD00--
******************