api creating task files

This commit is contained in:
schrom01
2023-09-25 13:49:34 +02:00
parent de681f37b0
commit 91d85232ca
2 changed files with 46 additions and 2 deletions
+1 -1
View File
@@ -69,9 +69,9 @@ if(!is_dir($taskDir)){
$taskfilename = $taskDir.'/'.time().'-'.bin2hex(random_bytes(4)).'.txt';
$taskfile = fopen($taskfilename, 'w');
if($taskfile){
echo "Task written to file";
fwrite($taskfile, $taskString);
fclose($taskfile);
echo "Task written to file";
} else {
echo "Task not written to file";
}