管理編輯一些我需要保存到doc文件的數據。所以我用ckeditor實現了這個。它工作正常,但是當我嘗試打開這個文件它說「單詞無法啓動轉換器mswrd632.wpc」。我究竟做錯了什麼?我們可以將ckeditor數據保存到我的網站的doc文件
$content=addslashes(trim($_REQUEST['CKEditor']))
$docfile="convert.doc";
$fp = fopen("files/".$docfile, "w+");
fwrite($fp, $content);
,這是我的代碼 如何才能將數據保存到文檔file.is有沒有其他辦法?
<p class="body">
England would be keen to finish the summer on a high note by also remaining unbeaten in the upcoming ODI series against world champions India, said Test skipper Andrew Strauss after handing out the visitors a 4-0 whitewash.</p>
你在做什麼不產生doc文件,你是掩蔽HTML文件作爲一個Word文件中的希望,它會自動導入。只是爲了澄清。您可能需要顯示HTML的啓動方式 –
文件類型不僅在其擴展方面有所不同。您必須以doc格式編寫數據,因此word可以解釋數據。你保存的基本上是一個常用的文本文件。 – Smamatti
so smamatti是否有其他方式將數據保存到doc文件中 – Sibu