header(\"Content-Type: application/vnd.ms-excel; charset=utf-8\"); header(\"Content-type: application/x-msexcel; charset=utf-8\"); header(\"Content-Disposition:
The problem is you typed the wrong file extension for excel file. you used .xsl instead of xls.
I know i came in late but it can help future readers of this post.