note 7896 deleted from URL Functions by ronabop
| From: | ronabop@php.net | Date: | Sun, 20 Aug 2000 11:14:16 +0000 |
| Subject: | note 7896 deleted from URL Functions by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2741@lists.php.net to get a copy of this message | ||
I have a CNAME pointing to an IP address through DNS. When it gets to the IP, I want to figure out
what the URL is and then redirect it to another page based on the CNAME.
For example:
mymail.domain.com gets sent to www.otherdomain.com. When that pages loads, I want to see that the
url contains mymail and redirect it to another page. Any ideas? I believe $server_name will just
give me www.otherdomain.com because that is where I am physically located, even though the URL says
mymail.domain.com.
JavaScript (I KNOW!) has a document.url, since it is client side. Would there be a way to set a PHP
variable to that result?
thanks