I am trying to figure this out and can't find the right combination to
get what I want in a certain situation.
Suppose I am running a script from an URL like:
on this page I want to redirect to another page and send a full http
$redirect = "http://" . $_SERVER['HTTP_HOST'] . "/foo/hello.php";
In this case, $_SERVER['HTTP_HOST'] is 127.0.0.1
How can I get the ~/myname/
BTW. Please copy me directly on any replies as I am on the digest....