Jay Blanchard wrote: > [snip] > I want generate an excel table & download it as a file (not view in > IE), what HTML mimetype should i use? [/snip] > > header("Content-Type: application/vnd.ms-excel"); > header("Content-Disposition: inline; filename=\"excel.xls\""); > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=yourfile.xls"); header("Pragma: no-cache"); header("Expires: 0"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php