kisukedeath

Get the current URL

Jul 16th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2. echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
  3. echo $_SERVER['PHP_SELF'];
  4. echo basename($_SERVER['PHP_SELF']);
  5. echo basename($_SERVER['REQUEST_URI']);
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment