Home > Backend Development > PHP Tutorial > In the window2003 iis environment, PHPExcel cannot create temporary files_PHP tutorial

In the window2003 iis environment, PHPExcel cannot create temporary files_PHP tutorial

WBOY
Release: 2016-07-13 17:51:58
Original
1151 people have browsed it

In PHPExcel/Shared/OLE/OLE_File.php function init

$this->_tmp_filename = tempnam($this->_tmp_dir, "OLE_PPS_File");

Join below

if($this->->_tmp_filename==false){

$this->->_tmp_filename="C:\WINDOWS\Temp\".time()."tmp";

}

Because

The tempnam function cannot generate temporary file names in Windows 2003

Excerpted from lpdx111’s column

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478173.htmlTechArticleIn PHPExcel/Shared/OLE/OLE_File.php function init $this-_tmp_filename = tempnam($this-_tmp_dir , OLE_PPS_File); add if($this--_tmp_filename==false){ $this--_tmp_filename=C...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template