NYCPHP Meetup

NYPHP.org

[nycphp-talk] Excel library

Russ Demarest rsd at electronink.com
Thu Apr 29 11:00:31 EDT 2004


You can also add Excel headers and send a HTML table and Excel will 
usually open it.

Be sure this goes to the browser first.

                $filename = 
strftime("add_your_filename_%y%m%d_%H%M.xls");
                 header("Content-type: application/x-msexcel");
                 header("Content-Disposition: attachment; 
filename=\"$filename\"");

Then a plain old HTML table should open in Excel.

	Russ



On Apr 29, 2004, at 10:54 AM, Mark Armendariz wrote:

> Later Versions of excel properly parses csv  (Comma Seperated Values) 
> files,
> and even own's the file type upon installation (by default, anyways) 
> on MS.
> So you COULD potentially just output a csv file, and Excel should open 
> it
> right up and parse it accordingly.  That's a basic, no research 
> necessary,
> out of time, low budget option anyways :)
>
> Mark
>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>




More information about the talk mailing list