Home  >  Article  >  Backend Development  >  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
WBOYOriginal
2016-07-13 17:51:581092browse

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...
Statement:
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