Workbook::&setTempDir -- Sets the temp dir used for storing the OLE file. ïÐÉÓÁÎÉÅ
Sets the temp dir used for storing the OLE file. Use this method if you
don't have the right to write in the default temporary dir.
÷ÏÚ×ÒÁÝÁÅÍÏÅ ÚÎÁÞÅÎÉÅ
boolean - TRUE if given dir is valid, FALSE otherwise
úÁÍÅÔËÁüÔÁ ÆÕÎËÃÉÑ ÎÅ ÄÏÌÖÎÁ ×ÙÚÙ×ÁÔØÓÑ ÓÔÁÔÉÞÅÓËÉ. ðÒÉÍÅÒПример 25-1. Using &setTempDir()
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
$worksheet->setTempDir('/home/xnoguer/temp');
$worksheet->write(0, 0, "did this work?");
$workbook->close();
?>
|
|
|