Returns directory and filename for GnuCash csv

This commit is contained in:
Jonathan Rosenbaum
2015-04-06 08:39:31 +00:00
parent f89c86384a
commit 76ad12e4a3
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -232,7 +232,8 @@ $csv_directory = CSV_DIRECTORY;
$csv_file = fopen($file, "w") or die("Unable to open file for writing.");
fwrite($csv_file, $gnucash_csv_file);
fclose($csv_file);
echo $file;
// download file to browser
/*
header('Content-Description: File Transfer');
@@ -270,6 +271,8 @@ $csv_directory = CSV_DIRECTORY;
$csv_file = fopen($file, "w") or die("Unable to open file for writing.");
fwrite($csv_file, $gnucash_csv_file);
fclose($csv_file);
echo $file;
}