chaning maximal Execution Time to Hostinger Setting

This commit is contained in:
schrom01 2023-09-26 18:20:53 +02:00
parent 6ec770f27c
commit 4f6bd7de91
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ include "read_write_xlsx.php";
include "emailSender.php"; include "emailSender.php";
$maxExecutionTime = 300; $maxExecutionTime = 120;
$taskDir = 'tasks'; $taskDir = 'tasks';
$downloadDir = 'download'; $downloadDir = 'download';
$minTaskOldness = 10; $minTaskOldness = 10;
@ -71,7 +71,7 @@ function convertcsvToXlsx(string $csvFile, string $xlsxFile)
write_xlsxFile($xlsxFile, $csvData); write_xlsxFile($xlsxFile, $csvData);
} }
while($latesEndTime - time() > 60){ while($latesEndTime - time() > 30){
// If the directory for Tasks is already created // If the directory for Tasks is already created
if(is_dir($taskDir)) { if(is_dir($taskDir)) {
$taskfiles = scandir($taskDir); $taskfiles = scandir($taskDir);