mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 11:12:58 +05:30
14 lines
322 B
PHP
14 lines
322 B
PHP
<?php
|
|
$currentHost = $_SERVER['HTTP_HOST'];
|
|
$localIP = $_ENV['LOCAL_IP'];
|
|
|
|
if($currentHost == "localhost") {
|
|
$basePath = "https://localhost/neosubhamoy/htdocs";
|
|
}
|
|
elseif ($currentHost == $localIP) {
|
|
$basePath = "https://" . $localIP . "/neosubhamoy/htdocs";
|
|
}
|
|
else {
|
|
$basePath = "https://" . $currentHost;
|
|
}
|
|
?>
|