X-Git-Url: http://git.roojs.org/?p=pear-examples;a=blobdiff_plain;f=File_Convert_AbiToDocx%2FAbiToDocx.php;h=2d14d1ef721929e9102a7d3ab25fac625a5856dc;hp=483618bdc660ab79f95377b461c4bf062babaf12;hb=2ab10dc410a3cc3c0a91d2e8b1d3c49fa9698cfa;hpb=1c2ea7443c03e7d136430c410c413f7043bb42ba diff --git a/File_Convert_AbiToDocx/AbiToDocx.php b/File_Convert_AbiToDocx/AbiToDocx.php index 483618b..2d14d1e 100644 --- a/File_Convert_AbiToDocx/AbiToDocx.php +++ b/File_Convert_AbiToDocx/AbiToDocx.php @@ -10,10 +10,7 @@ $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');