prepared Task Executer

This commit is contained in:
schrom01
2023-09-25 15:45:26 +02:00
parent b178df10e3
commit 3fa9fa6d79
3 changed files with 53 additions and 14 deletions
+1 -2
View File
@@ -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);