| @@ 532-539 (lines=8) @@ | ||
| 529 | * Return a filename to temporarily use |
|
| 530 | * @return string |
|
| 531 | */ |
|
| 532 | function getTmpFilename() |
|
| 533 | { |
|
| 534 | $path = "./files/cache/importer"; |
|
| 535 | if(!is_dir($path)) FileHandler::makeDir($path); |
|
| 536 | $filename = sprintf("%s/%d", $path, rand(11111111,99999999)); |
|
| 537 | if(file_exists($filename)) $filename .= rand(111,999); |
|
| 538 | return $filename; |
|
| 539 | } |
|
| 540 | ||
| 541 | /** |
|
| 542 | * Read buff until key value comes out from a specific file point |
|
| @@ 1190-1197 (lines=8) @@ | ||
| 1187 | * Return a filename to temporarily use |
|
| 1188 | * @return string |
|
| 1189 | */ |
|
| 1190 | function getTmpFilename() |
|
| 1191 | { |
|
| 1192 | $path = "./files/cache/importer"; |
|
| 1193 | FileHandler::makeDir($path); |
|
| 1194 | $filename = sprintf("%s/%d", $path, rand(11111111,99999999)); |
|
| 1195 | if(file_exists($filename)) $filename .= rand(111,999); |
|
| 1196 | return $filename; |
|
| 1197 | } |
|
| 1198 | ||
| 1199 | /** |
|
| 1200 | * Read buff until key value comes out from a specific file point |
|