Php Location Of User - PHP Location Of User If you need to know wether a person is on a certain page then use this code: CODE $array = explode('?', $_SERVER['REQUEST_URI']); if(!isset($array[1])) { Do whatever here } The good thing about above is that it separates appended strings. For instance "index.php" and "index.php?string here". Computer Issues & Video Gaming.