ameliabob Posted May 8, 2012 Share Posted May 8, 2012 I have been using $_REQUEST to get the various parts of a url. Is there a command to allow me to see the entire url before processing any of it? Link to comment Share on other sites More sharing options...
Ingolme Posted May 8, 2012 Share Posted May 8, 2012 You should use $_GET if you're using parameters of the URL. You can get the query string with $_SERVER['QUERY_STRING'], the $_SERVER['SERVER_NAME'] will get the host. $_SERVER['REQUEST_URI'] gets everything that follows the host name in the URL. Maybe you can find other useful things on this page: http://es.php.net/manual/en/reserved.variables.server.php Link to comment Share on other sites More sharing options...
ameliabob Posted May 8, 2012 Author Share Posted May 8, 2012 Thanks, Exactly what I was looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now