This project includes some classes which are used to generate very simple MS Excel file (xls) via PHP. The generated xls file can be obtained by web as a stream file or can be written under $default_dir path. It has very simple usage to generate xls file from a select query using mysql, pgsql, oci8 databases.
– Max character size of a text(label) cell is 255
( due to MS Excel 5.0 Binary File Format definition )
Give it a try here