I have following codes for exporting from my php file
header("Content-type: application/msexcel");
header("Content-Disposition: attachment; filename=exceldata.xls");
header("Pragma: no-cache");
header("Expires: 0");"
This code produces following error
The file you are trying to open is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
Please suggest some solution?Thanks in advance!!