Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 23912 программистов и 1389 роботов. Сейчас ищут 1467 программистов ...

Workbook::&setTempDir

Вернуться к: Spreadsheet_Excel_Writer

Workbook::&setTempDir

Workbook::&setTempDir – Sets the temp dir used for storing the OLE file.

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

boolean Workbook::&setTempDir ( string $dir )

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.

Parameter

  • string $dir - The dir to be used as temp dir

Return value

boolean - TRUE if given dir is valid, FALSE otherwise

Note

This function can not be called statically.

Example

Using &setTempDir()

<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
$workbook->setTempDir('/home/xnoguer/temp');
$worksheet->write(00"did this work?");
$workbook->close();
?>


Вернуться к: Spreadsheet_Excel_Writer

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware