Warning: main(Spreadsheet/Writer/Workbook.php): failed to open stream: No such file or directory in /var/www/web97/html/adress24/portal/excel/pear/Spreadsheet/Writer.php on line 35
Fatal error: main(): Failed opening required 'Spreadsheet/Writer/Workbook.php' (include_path='.') in /var/www/web97/html/adress24/portal/excel/pear/Spreadsheet/Writer.php on line 35
<?php
class Spreadsheet_Excel_Writer extends Spreadsheet_Excel_Writer_Workbook
{
function Spreadsheet_Excel_Writer($filename = '')
{
$this->_filename = $filename;
$this->Spreadsheet_Excel_Writer_Workbook($filename);
}
function send($filename)
{
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
}
function rowcolToCell($row, $col)
{
if ($col > 255) { //maximum column value exceeded
return new PEAR_Error("Maximum column value exceeded: $col");
}
$int = (int)($col / 26);
$frac = $col % 26;
$chr1 = '';
if ($int > 0) {
$chr1 = chr(ord('A') + $int - 1);
}
$chr2 = chr(ord('A') + $frac);
$row++;
return $chr1 . $chr2 . $row;
}
}
?>
[/PHP]
Fatal error: main(): Failed opening required 'Spreadsheet/Writer/Workbook.php' (include_path='.') in /var/www/web97/html/adress24/portal/excel/pear/Spreadsheet/Writer.php on line 35
<?php
PHP-Code:
require_once 'PEAR.php';
require_once 'Spreadsheet/Writer/Workbook.php';
class Spreadsheet_Excel_Writer extends Spreadsheet_Excel_Writer_Workbook
{
function Spreadsheet_Excel_Writer($filename = '')
{
$this->_filename = $filename;
$this->Spreadsheet_Excel_Writer_Workbook($filename);
}
function send($filename)
{
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Pragma: public");
}
function rowcolToCell($row, $col)
{
if ($col > 255) { //maximum column value exceeded
return new PEAR_Error("Maximum column value exceeded: $col");
}
$int = (int)($col / 26);
$frac = $col % 26;
$chr1 = '';
if ($int > 0) {
$chr1 = chr(ord('A') + $int - 1);
}
$chr2 = chr(ord('A') + $frac);
$row++;
return $chr1 . $chr2 . $row;
}
}
?>
[/PHP]
Kommentar