Php Location Of User

Php Location User - Computer Issues, Video Gaming - Posted: 18th Feb, 2009 - 1:18pm

Text RPG Play Text RPG ?
 

Posts: 1 - Views: 4617
Hypertext Preprocessor Code
18th Feb, 2009 - 1:18pm / Post ID: #

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".



Sponsored Links:

 
> TOPIC: Php Location Of User
 

▲ TOP


International Discussions Coded by: BGID®
ALL RIGHTS RESERVED Copyright © 1999-2025
Disclaimer Privacy Report Errors Credits
This site uses Cookies to dispense or record information with regards to your visit. By continuing to use this site you agree to the terms outlined in our Cookies used here: Privacy / Disclaimer,