Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2.  
  3. if ($_SERVER['REQUEST_SCHEME'] == 'http') {
  4.     header("Location: " . "http://" . $_SERVER['HTTP_HOST'] . '/debug.php');
  5. } else {
  6.     echo "<pre>";
  7.     print_r($_SERVER);
  8.     echo "</pre>";
  9.     exit;
  10. }
  11.  
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement