小编Le-*_* tm的帖子

ZipArchive :: close():无法创建临时文件:权限被拒绝的nginx

我很乐意建议如何解决以下问题。对于平台,我必须创建php word文档,并且碰巧在Apache开发环境中,该代码可以完美执行。但是在nginx平台上,如主题所示,我继续收到错误:

ZipArchive::close(): Failure to create temporary file: Permission denied
Run Code Online (Sandbox Code Playgroud)

建立起来非常简单:

$phpWord = new \PhpOffice\PhpWord\PhpWord();

//code block as in the documentation

$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'Word2007');

$objWriter->save('doorverwijzing_patient_xxxxxxxxxx.docx');
Run Code Online (Sandbox Code Playgroud)

在哪里可以更改nginx文件夹结构中的这些权限以创建这些文档?

phpword phpoffice

7
推荐指数
2
解决办法
2万
查看次数

标签 统计

phpoffice ×1

phpword ×1