Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. echo gettype($_SERVER['REMOTE_ADDR']);
  2. //this is a string
  3. echo $_SERVER['REMOTE_ADDR'];
  4. // example 66.19.201.223
  5. if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1' || $_SERVER['REMOTE_ADDR'] != '66.19.201.223') {
  6.     exit("bye");
  7. } else {
  8.     echo "it works \n";
  9. }
  10.  
  11. on my script, by WGET, instead of printing "it works", it dies with "bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement