Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Check what's really in $_SERVER['REQUEST_URI']
Or like this:
switch ($_SERVER['REQUEST_URI']) {
case "1.site.ru":
$city = 'Москва';
break;
case "2.site.ru":
$city = 'Воронеж';
break;
deafult:
$city = 'Неизвестный адрес ' . $_SERVER['REQUEST_URI'];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question