Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2001
    Location
    Atlanta. Georgia
    Posts
    252

    Question 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

  2. #2
    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

  3. #3
    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>";
    ?>

  4. #4
    Join Date
    Jul 2002
    Location
    Sydney, Australia
    Posts
    132

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •