Finally working on windows

This commit is contained in:
Hash Borgir 2021-03-22 06:17:02 -06:00
parent ef04c83592
commit 03c73e8cf8

View File

@ -68,11 +68,10 @@ class saveFile {
if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0700);
// write for .tbl
$str[0] = $post['index'];
$str[1] = $post['index'];
$fp = fopen($this->path.DIRECTORY_SEPARATOR.'tblEntries'. DIRECTORY_SEPARATOR. "UniqueItemsTblEntries.txt", 'a+');
fputcsv($fp, $str, "\t");
}
$str = '"'.$post['index'].'"'."\t".'"'.$post['index'].'"'.PHP_EOL;
$file = $this->path."\\tblEntries\\UniqueItemsTblEntries.txt";
file_put_contents($file, $str, FILE_APPEND);
}
public function __construct() {
$this->path = TXT_PATH;