php header content type


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. header("Content-type:application/vnd.ms-word");
  2. header("Content-Disposition:attachment;filename=test.doc");
  3.  
  4. header("Content-type:application/vnd.ms-excel");
  5. header("Content-Disposition:attachment;filename=test.xls");
  6.  
  7. header("Content-type:application/vnd.ms-PowerPoint");
  8. header("Content-Disposition:attachment;filename=test.ppt");

URL: http://ifuturetech.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.