Problem exporting xls files from localhost (WAMPserver)

Topics: Developer Forum, User Forum
Jan 12, 2010 at 8:24 AM

hi there!

i am fairly new to php programming in general, i created a database for my company that stores and makes querys for damages and it runs from my pc which runs as server using latest wampserver.

i was trying to use this script and it works perfectly if i upload it to my hosting server online, but for some reason from loaclhost the excel output file is really wrong.

this is the xls file when it opens:

 

<br />
<b>Notice</b>:  Undefined offset:  3 in<b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1209</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1152</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1152</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1152</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1152</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1334</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1334</b><br />
<br />
<b>Notice</b>:  Undefined offset:  6 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>1470</b><br />
<br />
<b>Notice</b>:  Undefined offset:  2 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>2011</b><br />
<br />
<b>Notice</b>:  Undefined offset:  3 in <b>C:\wamp\www\excel2\class.writeexcel_worksheet.inc.php</b> on line <b>2012</b><br />
<br />
<b>Notice</b>:  Undefined variable: data in <b>C:\wamp\www\excel2\class.writeexcel_workbook.inc.php</b> on line <b>1121</b><br />
Џࡱက>  l ɇSheet1B䄽%r8X"1ȀArial1ȀArial1ȀArial1ȀArial1ȀArial1Ȁ Arial������ ������ ������ ������ ������ ������ ������ ������ ������ ������ ������ ������ ������ ������ ������  @  H ‸3f̀̿fff̙̙̀̌̿̿̿̀̿̀3f3̌̀̀fff3f3f33333f33333
'Sheet1
l ɇ*+D"dXX࿀࿁
 
 Hi Excel!@@9b->@n��@ dd+d
YesNoB
http://www.php.net/\
 
Љ깹ΑK
ɪyΑK
(http://www.php.net/)����迦迄>

Root EntryBook
<br />
<b>Warning</b>:  unlink(C:\WINDOWS\Temp\sim187.tmp) [<a href='function.unlink'>function.unlink</a>]: Permission denied in <b>C:\wamp\www\excel2\example-simple.php</b> on line <b>38</b><br />

 

sorry about all that text but i see problems that i cannot resolve... is there any option/extension i need to enable in WAMP to make it work correctly?

thanks in advance! 

Developer
Jan 14, 2010 at 4:17 AM

Are you sure that you are using PHPExcel? Looks like you may be using some other library?