Problem saving edited zip archive (docx)

后端 未结 3 1582
温柔的废话
温柔的废话 2021-01-24 18:14

So here is my code:

open(\'test.docx\') === TRUE) {

 $xmlString = $zip->getFromName(\'word/document.xml\');
 $x         


        
3条回答
  •  太阳男子
    2021-01-24 19:01

    Add sleep(1) before $zip->addFromString('word/document.xml', $xmlString);

    It works on my Ubuntu 12.04

    Don't forget to type your variable in same time when you create a docx file, I mean never type FIRST_AND_LAST_NAME and then you add a symbol $ after that. It creates different XML code.

提交回复
热议问题