Posted By

fwso on 03/21/10


Tagged

php header excel word


Versions (?)

php header content type


 / Published in: PHP
 

URL: http://ifuturetech.com

  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");

Report this snippet  

You need to login to post a comment.