I am currently trying to figure out the best way to create a .xls file from PHP. It seems like to me that all I need to do is change the header content type to \"application
Try the XLS file wrapper, ala this post on SO.