public static function start(): bool {
try {
/*$scheme = $_SERVER["HTTPS"] == "on" ? "https" : "http";
$scheme = $_SERVER["REQUEST_SCHEME"] ? $_SERVER["REQUEST_SCHEME"] : $scheme;
$url = $scheme . "://" . ($_SERVER["HTTP_HOST"] ?? $_SERVER["SERVER_NAME"]);*/
$url = getenv("SITE_URL");
shell_exec("mono ".self::getServicePath()."/CronServer.exe ".self::getPort()." ".$url." > ".self::getServicePath()."/output.txt 2>&1 &");
return true;
} catch (Exception $e) {
error_log($e);
return false;
}
}
aCadir adlı üyeden alıntı:
mesajı görüntüle