NYCPHP Meetup

NYPHP.org

[nycphp-talk] Excel library

Phillip Powell phillip.powell at adnet-sys.com
Thu Apr 29 12:24:07 EDT 2004


Russ Demarest wrote:

> 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");


Shouldn't that be "Content-type: application.vnd-msexcel"?

Phil

>                 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
>>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>


-- 
---------------------------------------------------------------------------------
Phil Powell
Multimedia Programmer
ADNET Systems., Inc.
11260 Roger Bacon Drive Suite 403
Reston, VA  20191
#: (703) 709-7218 x107 
Fax: (703) 709-7219

	




More information about the talk mailing list