require_once 'File/Convert/AbiToDocx.php';
//Example AbiWord file
-$abiFileName = '/tmp/thumb2.abw';
-$fn = '/tmp/thumb.docx';
+$abiFileName = '/tmp/thumb3.abw';
+$fn = '/tmp/thumb-3.docx';
$conv = new File_Convert_AbiToDocx($abiFileName);
$conv->save($fn);
//$xml = new XMLReader();
// Download the file for testing
-if($_SERVER['SERVER_NAME'] == 'localhost')
-{
- exit;
-}
+
if (file_exists($fn)) {
echo 'Prepare for download!!';
header('Content-Description: File Transfer');