Ordermanager/bin/d3_ordermanager_cron

18 lines
369 B
Plaintext
Raw Normal View History

2024-01-22 14:06:08 +01:00
#!/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);