File_Convert_AbiToDocx/AbiToDocx.php
[pear-examples] / File_Convert_AbiToDocx / AbiToDocx.php
index ab1b06b..751ea90 100644 (file)
@@ -3,17 +3,14 @@ ini_set('include_path', __DIR__  . '/../pear:.');
 require_once 'File/Convert/AbiToDocx.php';
 
 //Example AbiWord file
-$abiFileName = '/tmp/thumb3.abw';
-$fn = '/tmp/thumb-3.docx';
+$abiFileName = '/tmp/thumb2.abw';
+$fn = '/tmp/thumb2.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');