Results 1 to 4 of 4
-
09-23-2002, 06:14 AM #1Web Hosting Guru
- Join Date
- Feb 2001
- Location
- Atlanta. Georgia
- Posts
- 252
Generate Excel and Word files from PHP?
Someone asked me if they could use php com functions to generate excel and word files from php. I'm at a loss as to what they're talking about!
Anyone have a clue? Does php have any functions that do this?
Thanks!Peachtree WebWorks, LLC
http://www.peachtreewebworks.com
-
09-23-2002, 01:07 PM #2Aspiring Evangelist
- Join Date
- Aug 2002
- Posts
- 380
yes it does, aslong as you are on a windows server,
if you do a search for a tutorial you should be able to find something good.web:http://www.allabouthosting.co.uk
email: sales@allabouthosting.co.uk
-
09-24-2002, 04:02 AM #3Newbie
- Join Date
- Aug 2002
- Posts
- 14
Theres more on this topic and it does not have to on a windows server, check out:
One nice way of generating a report and/or allowing your users to export the contents of a table, is to return HTML table tags as content-type Excel. This assumes the user has Excel 97 or later.
<?php
header('Content-type: application/vnd.ms-excel');
echo "<table><tr><td>hello</td><td>world</td></tr></table>";
?>
-
09-26-2002, 10:33 AM #4WHT Addict
- Join Date
- Jul 2002
- Location
- Sydney, Australia
- Posts
- 132