Grab url address
Something which should be really simple... But I cannot find it anywhere :(
I have my dsl modem configured to foward http request to the server; and this is working fine.
But what I want to do, is host more websites on the same server.
so what I was thinking of doing is basically having something in the index.php which says something like:
<?php
$urlname=" ".$_SERVER[" ???????? "];
if(strpos($urlname, "urladdress1") == true) {
.
.
}
if(strpos($urlname, "urladdress2") == true) {
.
.
}
etc..
if someone know how to do this I will really appreciate your help :)
|