From 528edd3bfdfca5519f9da1c2fb56507ed9a1e1d2 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Mon, 17 Mar 2014 15:21:14 +0400 Subject: [PATCH] uniq bat filename (for parallelism) --- twisterpost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twisterpost.php b/twisterpost.php index 1bd3506..3903926 100644 --- a/twisterpost.php +++ b/twisterpost.php @@ -150,7 +150,7 @@ class TwisterPost protected function exec_win($cmd, &$output = null, &$return_var = null) { - $tempfile = '_php_exec.bat'; + $tempfile = uniqid().'_php_exec.bat'; $bat = "@echo off\r\n" . "@chcp 65001 >nul\r\n"