PHP Classes

Create MS .doc files: Use PHP to create files in MS .doc format

Recommend this page to a friend!
  All requests RSS feed  >  Create MS .doc files  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Create MS .doc files

Edit

Picture of Bob Wedwick by Bob Wedwick - 8 years ago (2015-06-12)

Use PHP to create files in MS .doc format

This request is clear and relevant.
This request is not clear or is not relevant.

+13

The file is normally just one page with some graphics and variations for type fonts.

Ask clarification

1 Recommendation

VS PHP Word HTML: Create DOCX Word document dynamically from HTML

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Manuel Lemos by Manuel Lemos Reputation 23325 - 8 years ago (2015-06-15) Comment

This class can create Microsoft Word documents in DOCX (XML) format. It allows you to include document parts dynamically defining them as HTML.

  • 3 Comments
  • 1. Picture of ibrahim bouziane by ibrahim bouziane - 7 years ago (2016-04-25) Reply

    is it possible to download docx file instead of saving it

  • 2. Picture of Manuel Lemos by Manuel Lemos - 7 years ago (2016-05-03) in reply to comment 1 by ibrahim bouziane Reply

    Maybe it is possible with minor changes or you can just serve the file for download.

    In any case you can ask the author in the package support forum.

  • 3. Picture of aleksanm by aleksanm - 7 years ago (2016-06-09) in reply to comment 1 by ibrahim bouziane Reply

    <?php $file = 'monkey.gif';

    if (file_exists($file)) {

    header('Content-Description: File Transfer');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($file).'"');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length: ' . filesize($file));
    readfile($file);
    exit;
    

    } ?>


Recommend package
: 
: