From f24e77857c4af0c53ac4c7db7e671c3fbf9dc67b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 28 Aug 2011 23:12:10 -0400 Subject: A neat little weekend (well, two Fridays and a Sunday) project to 1) generate org-mode files from copy/pasted data from MS-word 2) generate Wordpress posts from such org-mode files --- upload-msword.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 upload-msword.php (limited to 'upload-msword.php') diff --git a/upload-msword.php b/upload-msword.php new file mode 100644 index 0000000..b234381 --- /dev/null +++ b/upload-msword.php @@ -0,0 +1,31 @@ +&1 > '$filename'"; + echo '
'.htmlentities($cmd).'
'; + echo '
';
+	system($cmd, $status);
+	echo '
'; + unlink($tmp); + if ($status != 0) { + unlink($filename); + echo '

error

'; + } +} else { + ?> +
+ + + +
+