PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Timothy Edwards   PHP Parse DOCX to HTML with Images   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Parse DOCX to HTML with Images
Convert Microsoft Word DOCX document to HTML
Author: By
Last change: Update test.php

Update for version v2.1.11
Date: 2 months ago
Size: 321 bytes
 

Contents

Class file image Download
<?php
require_once('wordphp.php');
$rt = new WordPHP(false);
$text = $rt->readDocument('sample.docx','N');
echo
$text;
// The following two lines are optional if required to save the html text to a file (newfile.php)
$myfile = fopen("newfile.php", "w") or die("Unable to open file!");
fwrite($myfile, $text);
?>