php header content type
Copy this code and paste it in your HTML
header("Content-type:application/vnd.ms-word"); header("Content-Disposition:attachment;filename=test.doc");
header("Content-type:application/vnd.ms-excel"); header("Content-Disposition:attachment;filename=test.xls");
header("Content-type:application/vnd.ms-PowerPoint"); header("Content-Disposition:attachment;filename=test.ppt");
URL: http://ifuturetech.com
Report this snippet
Comments
Subscribe to comments