Home » File Formats » Spreadsheet_Excel_Writer » Bug #482
open_basedir problems
Details
| Submitted | 2003-12-23 03:29 UTC |
|---|---|
| From | spammable at howsfamily dot net |
| Status | No Feedback |
| Package | Spreadsheet_Excel_Writer |
| PHP Version | 4.3.4 |
| OS | Windows XP Pro |
| Roadmaps | (Not assigned) |
Comments
[2003-12-23 03:29 UTC] spammable at howsfamily dot net
Description:
------------
Originally, the writer always output a 0-byte file. You should probably change the example code in the documentation to include a test of the return value of Workbook->close(), which is where I found the error.
When a basedir restriction is in effect, the OLE library needs a specific temporary file location set. In my case, I added:
$OLE->setTempDir($myTempDir);
and
$root->setTempDir($myTempDir);
just after the constructors of the appropriate objects in the Workbook->_storeOLEFile() function.
[2003-12-23 11:11 UTC] xnoguer at php dot net
There is a setTempDir() method on the cvs version of the package. Please check if it solves your problem.
The docs for Workbook::close() will be updated as soon as I can.