PHP Excel 出现 PHP Warning: ZipArchive::open() Unable to access php://output 的解决方案

本来服务器用PHP Excel 导出 excel 运行得好好的,忽然出现 PHP Warning: ZipArchive::open() Unable to access php://output 原因。

 


下载的文件,打开也出现这样的错误。



原来服务器 php.ini 的配置被改了。启用了安全模式,只要把安全模式关了就行。

; Safe Mode
; http://php.net/safe-mode
safe_mode = Off

; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://php.net/safe-mode-gid
safe_mode_gid = Off

原文:http://woqilin.blogspot.com/2016/05/php-excel-php-warning-ziparchiveopen.html

猜你喜欢

转载自wangzq-phper.iteye.com/blog/2299511
今日推荐