phpoffice

ZipArchive::close(): Failure to create temporary file: Permission denied nginx

假装没事ソ 提交于 2019-12-04 06:05:44
I would love a good suggestion how to fix the following. For a platform I have to create php word documents and it so happens that on the Apache dev environment this code executes perfectly; yet on the nginx platform I keep on receiving the error as the topic suggests: ZipArchive::close(): Failure to create temporary file: Permission denied The build up is pretty simple: $phpWord = new \PhpOffice\PhpWord\PhpWord(); //code block as in the documentation $objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord,'Word2007'); $objWriter->save('doorverwijzing_patient_xxxxxxxxxx.docx'); Where

PHPWord addTOC is not displaying page numbers

杀马特。学长 韩版系。学妹 提交于 2019-12-03 00:44:03
I'm using https://github.com/PHPOffice/PHPWord to generate a word document. The function addTOC generates an index of pages with titles, but for some reason the page numbers do not display. // add table of contents $section->addTOC(); Results in: If I echo the page numbers on the pages where the titles exist, they display fine. But they don't display in the TOC. I checked to confirm the text isn't white. From PHPWord example in samples dir ( https://github.com/PHPOffice/PHPWord/blob/develop/samples/Sample_17_TitleTOC.php ), I would tell it is not possible: echo date('H:i:s'), ' Note: Please

What are the main differences between PHPExcel and PhpSpreadsheet?

只愿长相守 提交于 2019-11-30 17:17:27
In project of PHPOffice there are two projects associated with spreadsheet file formats: PHPExcel PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP. and PhpSpreadsheets PhpSpreadsheet is a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file

What are the main differences between PHPExcel and PhpSpreadsheet?

不想你离开。 提交于 2019-11-29 11:18:56
问题 In project of PHPOffice there are two projects associated with spreadsheet file formats: PHPExcel PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP. and PhpSpreadsheets PhpSpreadsheet is a library written in pure