Spreadsheet_Excel_Writer - Can not save to regular file

From: Date: Wed, 28 Feb 2007 04:24:09 +0000
Subject: Spreadsheet_Excel_Writer - Can not save to regular file
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26687@lists.php.net to get a copy of this message
Hi, I have no problem if i sent the file to the browser, i can open it or save it but I have problem when I want to save the file to regular file, it can not save to the dir that i set and when i search the file I found it in my /var/tmp and the file name is "OLE_PPS_Filexxxxxx". I run on FreeBSD machine. So is there someting that i miss? Can someone please give me a clue to solve this problem? This is sample of my code: <?php require_once 'lib/excel/Writer.php'; // We give the path to our file here $workbook = new Spreadsheet_Excel_Writer('test.xls'); $workbook->setTempDir('/usr/local/www/apache22/data'); $worksheet =& $workbook->addWorksheet('My first worksheet'); $worksheet->write(0, 0, 'Name'); $worksheet->write(0, 1, 'Age'); $worksheet->write(1, 0, 'John Smith'); $worksheet->write(1, 1, 30); $worksheet->write(2, 0, 'Johann Schmidt'); $worksheet->write(2, 1, 31); $worksheet->write(3, 0, 'Juan Herrera'); $worksheet->write(3, 1, 32); // We still need to explicitly close the workbook $workbook->close(); ?> Thanks in advance. Regards, Joni --------------------------------- Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

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