Advertisement
Ra1ski

Untitled

Oct 21st, 2013
3,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Per 0.30 KB | None | 0 0
  1. header("Content-type: application/vnd.ms-word");
  2. header("Content-Disposition: attachment;Filename=document_name.doc");
  3.  
  4. echo "<html>";
  5. echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">";
  6. echo "<body>";
  7. echo "<b>My first document</b>";
  8. echo "</body>";
  9. echo "</html>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement