Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Nov 13th, 2018 77 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php if ($_SERVER['REQUEST_URI'] == '/questions/') { ?>
  2.     сюда включаем нужный код или текст
  3.     <?php }  ?>
  4.    
  5. abc → меняющаяся часть ссылки.
  6.    
  7. $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
  8. $result = array_pop(explode("/", trim($path, "/")));
  9. switch ($result) {
  10.     case('abc'): ... break;
  11.     case('def'): ... break;
  12.     и т.д.
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top