Try to get the container name 6
continuous-integration/drone/push Build is passing Details

master
dohodin 2 years ago
parent c678bd14b5
commit b70338974e

@ -16,12 +16,12 @@ $views['error'] = 'Views/HTML/error.php';
$_SERVER['BASE_URI'] = ''; $_SERVER['BASE_URI'] = '';
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http"; $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
$url = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $host = $_SERVER['HTTP_HOST'];
echo $url; $uri = $_SERVER['REQUEST_URI'];
$url = $protocol . "://" . $host . $uri;
echo "URL : ".$url." "; echo "URL : ".$url." \n ";
$newUrl=parse_url($url, PHP_URL_PATH); $newUrl=parse_url($url, PHP_URL_PATH);
echo "NewURL : ".$newUrl." "; echo "NewURL : ".$newUrl." \n ";
$container_name = basename($newUrl); $container_name = basename($newUrl);
echo "Container : ".$container_name; echo "Container : ".$container_name;

Loading…
Cancel
Save