search
Homephp教程php手册在window2003 iis环境下,PHPExcel无法创建临时文件的问题

在window2003 iis环境下,PHPExcel无法创建临时文件的问题

Jun 13, 2016 am 10:50 AM
iisphpexcelsDowncreateexistdocumentenvironmentofquestion

在PHPExcel/Shared/OLE/OLE_File.php 中 function init

 

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

 下加入

 

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

 

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

}

 

 

因为

tempnam 函数 在windows2003 中 无法生成 临时文件名

 

 

摘自 lpdx111的专栏

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools