Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo gettype($_SERVER['REMOTE_ADDR']);
- //this is a string
- echo $_SERVER['REMOTE_ADDR'];
- // example 66.19.201.223
- if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1' || $_SERVER['REMOTE_ADDR'] != '66.19.201.223') {
- exit("bye");
- } else {
- echo "it works \n";
- }
- on my script, by WGET, instead of printing "it works", it dies with "bye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement