you'd probably want to take a look at $_SERVER variables.
There are a lot of cool info about your script and server, such as: absolute path, url and so on
You can find a good help list here:http://php.net/manual/en/reserved.variables.server.php
maybe you need one of these 2
Code: Select all