Re: Structures_DataGrid_Renderer_XLS: I just get empty files

From: Date: Tue, 27 Feb 2007 16:37:19 +0000
Subject: Re: Structures_DataGrid_Renderer_XLS: I just get empty files
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26684@lists.php.net to get a copy of this message
Hi Markus, Markus Ernst wrote: > Thank you for your input! I updated all kinds of PEAR packages that > could have any impact, with no success. Anyway as you wrote it worked > for you, I tried to understand what happens in those Excel and OLE > classes and finally found the reason: A Safe Mode restriction prevented > the OLE File class from creating a temporary file! > > So here's the Safe Mode proof version of my code (csv part removed): [...] > $workbook =& $renderer->getContainer(); > $workbook->setTempDir($_SERVER['DOCUMENT_ROOT'].'/temp/'); [...] I now remember that I had the same problem sometime last year. Can you please write a feature request? I think it would be a good idea to add a new option for the temporary directory and to document the need to set this option when safe_mode is enabled. Regards, Mark -- http://www.markwiesemann.eu

« previous php.pear.general (#26684) next »