用PHP生成单词文档
参见英文答案 >
Create Word Document using PHP in Linux10个
http://www.webcheatsheet.com/php/create_word_excel_csv_files_with_php.php 引用文章最常见的方法: 使用HTTP头
<?php 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>"; ?> (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |