I use Spreadsheet_Excel_Writer to generate .xls file and it works fine until I have to deal with a large amount of data. On certain stage it just writes some nonsense chars and
I had the same problem, I found this solution that works for me:
http://pear.php.net/bugs/bug.php?id=19284&edit=3
[2012-08-08 17:12 UTC] identit (Vincent Dubourg)
The solution is change in Root.php \ line 623 :
fwrite($FILE, pack("V", 1));
to
fwrite($FILE, pack("V", $num_sb_blocks));
the file is pear/OLE/PPS/Root.php in package OLE 1.0.0RC2 (beta)