mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
Finally working on windows
This commit is contained in:
parent
ef04c83592
commit
03c73e8cf8
@ -68,10 +68,9 @@ class saveFile {
|
|||||||
if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0700);
|
if (!is_dir($this->path."tblEntries")) mkdir($this->path."tblEntries", 0700);
|
||||||
|
|
||||||
// write for .tbl
|
// write for .tbl
|
||||||
$str[0] = $post['index'];
|
$str = '"'.$post['index'].'"'."\t".'"'.$post['index'].'"'.PHP_EOL;
|
||||||
$str[1] = $post['index'];
|
$file = $this->path."\\tblEntries\\UniqueItemsTblEntries.txt";
|
||||||
$fp = fopen($this->path.DIRECTORY_SEPARATOR.'tblEntries'. DIRECTORY_SEPARATOR. "UniqueItemsTblEntries.txt", 'a+');
|
file_put_contents($file, $str, FILE_APPEND);
|
||||||
fputcsv($fp, $str, "\t");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
Loading…
Reference in New Issue
Block a user