RE: [PHP-DB] exporting data to excel
| From: | Galbreath, Mark A | Date: | Thu, 25 Mar 2004 12:57:36 +0000 |
| Subject: | RE: [PHP-DB] exporting data to excel | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33641@lists.php.net to get a copy of this message | ||
way cool - thanks for the clues!
Mark
It's better to TEACH a man how to fish than to GIVE him a fish!
-----Original Message-----
From: jeffrey_n_Dyke@Keane.com [mailto:jeffrey_n_Dyke@Keane.com]
Sent: Thursday, March 25, 2004 7:46 AM
take a look at the header function
http://php.net/header
an example...ymmv
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");
If you want to generate excel files with more features, take a look on
phpclasses.org.
There is a PHP port of the Perl Module SpreadsheetWriteExcell...
HTH
Jeff
_______________________