mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 04:26:03 +00:00
Finally working on windows
This commit is contained in:
parent
ef04c83592
commit
03c73e8cf8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user