From 2ab10dc410a3cc3c0a91d2e8b1d3c49fa9698cfa Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Dec 2012 12:10:16 +0800 Subject: [PATCH] File_Convert_AbiToDocx/AbiToDocx.php --- File_Convert_AbiToDocx/AbiToDocx.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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'); -- 2.39.2