Ordermanager/bin/d3_ordermanager_cron

18 lines
369 B
PHP

#!/usr/bin/env php
<?php
declare(strict_types = 1);
$count = 0;
$filePath = '../public/d3_ordermanager_cron.php';
$currentDirectory = __DIR__ . '/';
while ($count < 5) {
$count++;
if (file_exists($currentDirectory . $filePath)) {
$filePath = $currentDirectory . $filePath;
break;
}
$filePath = '../' . $filePath;
}
require($filePath);