AW: [PEAR] Problem with Spreadsheet_Excel_Writer

From: Date: Mon, 09 Feb 2004 13:37:20 +0000
Subject: AW: [PEAR] Problem with Spreadsheet_Excel_Writer
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10564@lists.php.net to get a copy of this message
Hi, the operating system on my production server is SuSe Linux 8.1. I inserted the 2 error-handling-lines in the php-script and I get the following error-message: "Can't create temporary file". A short extract from the PHP-script: // Creating a workbook $workbook = new Spreadsheet_Excel_Writer(); // sending HTTP headers $workbook->send('Stunden.xls'); // Formate $font_size =& $workbook->addFormat(); $font_size->setSize(11); $font_size->setAlign("center"); // Creating a worksheet $platz1 =& $workbook->addWorksheet('Platz1'); $platz2 =& $workbook->addWorksheet('Platz2'); $platz3 =& $workbook->addWorksheet('Platz3'); $platz1->write(0, 1, 'Montag'); $platz1->write(0, 2, 'Dienstag'); $platz1->write(0, 3, 'Mittwoch'); $platz1->write(0, 4, 'Donnerstag'); $platz1->write(0, 5, 'Freitag'); $platz1->write(0, 6, 'Samstag'); $platz1->write(0, 7, 'Sonntag'); regards, Markus -----Ursprüngliche Nachricht----- Von: Xavier Noguer [mailto:xnoguer@rezebra.com] Gesendet: Montag, 9. Februar 2004 13:26 An: pear-general@lists.php.net; stefan@neufeind.net; markus.poelzelbauer@bluewin.ch Betreff: Re: [PEAR] Problem with Spreadsheet_Excel_Writer Could you try with: error_reporting(E_ALL); PEAR::setErrorHandling(PEAR_ERROR_DIE); Besides that, what is the operating system in your production server? Can you provide the script that doesn't work (or a shorter one)? Xavier PS: I'm not subscribed to the list ---------------------------------------------------- I have installed all packeges on the server (OLE, Spreadsheet_Excel_Writer). With my PHP-Script I want to create a xls-file with 3 worksheets and when I test it on the server I get a xls-file with one worksheet and no data. regards, Markus -----Ursprüngliche Nachricht----- Von: Stefan Neufeind [mailto:stefan@neufeind.net] Gesendet: Sonntag, 8. Februar 2004 13:08 An: pear-general@lists.php.net Cc: Markus Pölzelbauer Betreff: Re: [PEAR] Problem with Spreadsheet_Excel_Writer On 8 Feb 2004 at 12:01, Markus Pölzelbauer wrote: > I have a problem with the Spreadsheet_Excel_Writer-Package. > When I test my PHP-Script on my Computer there is no problem. When I > test the script on my Homepage-Server I get a empty XLS-file. I have > no idea what the problem is. > > I hope someone can help me or has an idea what kind of problem I have. In what way "empty"? Does it produce a correct excel-file with just no input? Or do you receive a file of 0 bytes? Although there is a dependencie listed: Do you have a current release of the package OLE installed? Regards, Stefan -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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