2011년 10월 26일 수요일

php로 msword 파일 만들기

header("Content-type: application/vnd.ms-word"); header("Content-Disposition: attachment;Filename=document_name.doc"); echo "<html>"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">"; echo "<body>"; echo "<b>My first document</b>"; echo "</body>"; echo "</html>";출처:http://ko.w3support.net/index.php?db=so&id=124959

댓글 없음:

댓글 쓰기