PHPExcel 匯出表格出錯 應該是php.ini的問題 本地可以匯出,伺服器提示這些錯誤,哪位大神幫忙解決一下!

來源:互聯網
上載者:User
Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file excelTemp/1433560598.xlsx.' in D:\web\Domains\bn.gzgbi.com\public_html\m\patient\PHPExcel\Classes\PHPExcel\Writer\Excel2007.php:378 Stack trace: #0 D:\web\Domains\bn.gzgbi.com\public_html\m\patient\patient.list.php(564): PHPExcel_Writer_Excel2007->save('excelTemp/14335...') #1 D:\web\Domains\bn.gzgbi.com\public_html\m\patient\patient.php(36): include('D:\web\Domains\...') #2 {main} thrown in D:\web\Domains\bn.gzgbi.com\public_html\m\patient\PHPExcel\Classes\PHPExcel\Writer\Excel2007.php on line 378

// Close fileif ($objZip->close() === false) {throw new Exception("Could not close zip file $pFilename.");}


回複討論(解決方案)

Fatal error: Uncaught exception 'Exception' with message 'Could not close zip file excelTemp/1433560598.xlsx.' in D:\web\Domains\bn.gzgbi.com\public_html\m\patient\PHPExcel\Classes\PHPExcel\Writer\Excel2007.php:378 Stack trace: #0 D:\web\Domains\bn.gzgbi.com\public_html\m\patient\patient.list.php(564): PHPExcel_Writer_Excel2007->save('excelTemp/14335...') #1 D:\web\Domains\bn.gzgbi.com\public_html\m\patient\patient.php(36): include('D:\web\Domains\...') #2 {main} thrown inD:\web\Domains\bn.gzgbi.com\public_html\m\patient\PHPExcel\Classes\PHPExcel\Writer\Excel2007.php on line 378

快來人啊 幫幫忙

Could not close zip file 無法關閉 zip 檔案

應該是建立 xlsx 時產生的臨時檔案被系統軟體劫持了(比如病毒防火牆)

Could not close zip file 無法關閉 zip 檔案

應該是建立 xlsx 時產生的臨時檔案被系統軟體劫持了(比如病毒防火牆)

謝謝版主 那是不是要關閉這個防火牆?

Could not close zip file 無法關閉 zip 檔案

應該是建立 xlsx 時產生的臨時檔案被系統軟體劫持了(比如病毒防火牆)

就是不知道關閉哪個服務

可以嘗試一下
不知道關哪個?那就問問網管

可以嘗試一下
不知道關哪個?那就問問網管

非常感謝

我也遇到過這個問題 是檔案夾許可權的問題

修改一下就可以了

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.