Link to home
Create AccountLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Download Excel Message

See attached message.

I get this every time I download an Excel spreadsheet generated in php with the following header:

header("Content-type: application/vnd.ms-excel");
$fn = "registrants" . date('Y-m-d_h_i') . ".xls";
header("Content-Disposition: attachment; filename=" . $fn);

If I change the file extension to xlsx will that solve this?

Thanks
excel-message.jpg
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Richard Korts

ASKER

Ray,

the spreadsheet is fine; it downloads & opens fine in Excel 16.

it's just the confusing message.

the customer gets confused.

Richard