sample shows line of tect in browser, no download, no error

Topics: User Forum
Sep 9, 2011 at 4:11 PM


I try to get PHPExcel working on a ubuntu 2.6.38-8-server.

All I get is a line of text in the browser, e.g. with no errors:

15:58:15 Create new PHPExcel object 15:58:15 Set properties 15:58:15 Add some data 15:58:15 Rename sheet 15:58:15 Write to Excel2007 format 15:58:15Save Excel2007 format

What am I possibly missing?

Version information:

PHP Version 5.3.5-1ubuntu7.2

Zip     enabled
Extension Version     $Id: php_zip.c 305848 2010-11-30 11:04:06Z pajoye $
Zip version     1.9.1
Libzip version     0.9.0

ZLib Support     enabled
Stream Wrapper support     compress.zlib://
Stream Filter support     zlib.inflate, zlib.deflate
Compiled Version
Linked Version

libXML support     active
libXML Compiled Version     2.7.8
libXML Loaded Version     20708
libXML streams     enabled

Any help would be much apprecaited.



PHP Version 5.3.5-1ubuntu7.2
Sep 9, 2011 at 4:12 PM

It should have just saved to the test folder. The download.php files have code to let the user save or open it.

Sep 9, 2011 at 7:48 PM

To add some more information,

running th example, the file '01simple.xlsx' will be created.

ls -al *xls*

-rw-r--r-- 1 www-data www-data 6237 2011-09-09 20:44 01simple.xlsx

It just webpage just doesn't ask to save it.

It doesn't give me a clue, yet.

The generated files are fine too...


Sep 9, 2011 at 8:54 PM

I found the problem, looking at the example '01simple-download-xls.php', seeing the headers.

Make sure not to output anything else to the browser.