Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ($_SERVER['REQUEST_URI'] == '/questions/') { ?>
- сюда включаем нужный код или текст
- <?php } ?>
- abc → меняющаяся часть ссылки.
- $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
- $result = array_pop(explode("/", trim($path, "/")));
- switch ($result) {
- case('abc'): ... break;
- case('def'): ... break;
- и т.д.
Add Comment
Please, Sign In to add comment