News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
Dotvoid.com:
Generating Excel files with PHP
July 10, 2007 @ 07:46:47

Danne Lundqvist has posted about the process he went through when developing a solution to create Excel files in PHP:

I'm on this project at work where we need to create an excel file and send it via email or ftp to a recipient. The normal answer to this is to create a comma separated file and name it .xls and excel will work it out. However, that only works if you open it directly through an http request and are able to set the http headers correctly.

To get around these limitations, he found two solutions (thanks Google!) in PEAR's Spreadsheet_Excel_Writer and an MS-Excel Stream Handler class. He includes code that gives an example of another solution, one that packs data into a binary string and returns it as a part of the Excel document.

2 comments voice your opinion now!
excel file pear spreadsheet msexcel stream handler excel file pear spreadsheet msexcel stream handler





Similar Posts

Travis Swicegood's Blog: PHPT_Ensure v0.1alpha and PHPT_Core v0.1.1alpha released

Community News: Latest PEAR Releases for 04.23.2007

Norbert Mocsnik\'s Blog: Come and See Me (Hungarian Web Conference 2006)

Ligaya Turmelle's Blog: 25 Ways to help out PHP

TopWebNews.com: Web Services and PHP


Community Events









Don't see your event here?
Let us know!


zend windows podcast drupal facebook opinion zendframework performance developer microsoft symfony extension wordpress release conference feature codeigniter job framework sqlserver

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework