Or, even better and more useful:

http://pear.php.net/package/Spreadsheet_Excel_Writer

It's not perfect, but it does the basic job.

Also, if you output an HTML table and set the content type in your header to an 
Excel content type, it should ask the client PC to open the page in Excel 
(assuming they have it installed).  This works for a real quick and dirty 
export-to-excel type thing.   Then PHP isn't really creating an Excel file, but 
presenting the data in a format that Excel on the client PC can read.

Or you can use COM as Jay recommended, but that requires Excel to be installed 
on the PC that's running PHP and can get a little ugly.

-TG

= = = Original message = = =

[snip]
Can PHP be used to generate an excel file
[/snip]

http://www.php.net/com



___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to