2 ini_set('include_path', __DIR__ . '/../pear:.');
3 require_once 'File/Convert/AbiToDocx.php';
6 $abiFileName = '/tmp/thumb.abw';
7 $fn = '/tmp/thumb.docx';
8 $conv = new File_Convert_AbiToDocx($abiFileName);
10 //$xml = new XMLReader();
12 // Download the file for testing
13 if($_SERVER['SERVER_NAME'] == 'localhost')
17 if (file_exists($fn)) {
18 echo 'Prepare for download!!';
19 header('Content-Description: File Transfer');
20 header('Content-Type: application/octet-stream');
21 header('Content-Disposition: attachment; filename='.basename($fn));
22 header('Content-Transfer-Encoding: binary');
24 header('Cache-Control: must-revalidate');
25 header('Pragma: public');
26 header('Content-Length: ' . filesize($fn));