prepared Task Executer
This commit is contained in:
+1
-2
@@ -54,7 +54,6 @@ $requests_to_do = Array();
|
||||
// Loop through the selected values
|
||||
foreach ($sitze as $sitz) {
|
||||
$data["legalSeatId"] = $sitz;
|
||||
//$response = sendAPICompanySearchRequest($username, $password, $data);
|
||||
$requests_to_do[] = $data;
|
||||
}
|
||||
|
||||
@@ -66,7 +65,7 @@ $taskString = json_encode($taskdata);
|
||||
if(!is_dir($taskDir)){
|
||||
mkdir($taskDir, 0755, true);
|
||||
}
|
||||
$taskfilename = $taskDir.'/'.time().'-'.bin2hex(random_bytes(4)).'.txt';
|
||||
$taskfilename = $taskDir.'/'.time().'-'.bin2hex(random_bytes(4)).'.json';
|
||||
$taskfile = fopen($taskfilename, 'w');
|
||||
if($taskfile){
|
||||
fwrite($taskfile, $taskString);
|
||||
|
||||
Reference in New Issue
Block a user