Jump to content

Processing a complete url


ameliabob

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...