如何使用PHP(fwrite)將Word文檔添加到另一個Word文檔?使用PHP將Word文檔添加到另一個Word文檔
$filename = "./1.doc";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
$filename2 = "./2.doc";
$handle2 = fopen($filename2, "r");
$contents2 = fread($handle2, filesize($filename2));
$contents3 =$contents2.$contents;
$fp = fopen("./3.doc", 'w+');
fwrite($fp, $contents);
3.doc只包含1.doc。
謝謝,我看出來了,但是這是不是我的問題:-(仍然只看到1.DOC的 – jsmb 2009-10-19 08:53:59