⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 antiword.old.php

📁 A free MS Word reader for Linux and RISC OS. Antiword converts the files from Word 2, 6, 7, 97, 2000
💻 PHP
字号:
From: Paul Southworth <pauls@etext.org>
Subject: antiword PHP script
Date: Thu, 24 Oct 2002 14:01:05 -0700 (PDT)

Please find attached a trivial example of using a web form to process an
uploaded Word doc to text using antiword.  Perhaps other antiword users
would find it useful.

--Paul

<?
/* antiword.php
   A PHP script to convert uploaded MS Word docs to text using antiword.
   This script is public domain, no copyright.
   September 11, 2002
   Paul Southworth
*/
function print_form() {
?>
<html><head><title>antiword</title></head><body>
<form method=post action=antiword.php enctype="multipart/form-data">
<input name=upload type=file>
<input type=submit name=submit value=convert>
</form>
</body></html>
<?
}
if ($_FILES['upload']) {
    header ("Content-type: text/plain");
    system("/usr/local/bin/antiword " . $_FILES['upload']['tmp_name']);
} else {
    print_form();
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -