api creating task files
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user