我刚刚按照此处的安装过程在本地服务器上下载并安装了 PHPExcel 框架。https://github.com/PHPOffice/PHPExcel/blob/develop/install.txt
但是运行示例测试http://localhost/Tests/02types.php
一直给我这个错误:
08:10:37 Create new PHPExcel object
08:10:37 Set document properties
08:10:37 Set default font
08:10:37 Add some data
08:10:37 Rename worksheet
08:10:37 Write to Excel2007 format
Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file /var/www/Tests/02types.xlsx.' in /var/www/Classes/PHPExcel/Writer/Excel2007.php:378 Stack trace: #0 /var/www/Tests/02types.php(124): PHPExcel_Writer_Excel2007->save('/var/www/Tests/...') #1 {main} thrown in /var/www/Classes/PHPExcel/Writer/Excel2007.php on line 378
有谁知道为什么会发生这种情况?任何帮助将不胜感激。
海伦