subdomains & PHP_SELF
I have a php script that is referencing itself
it is normally at
but I also have a subdomain (which I would prefer to access it through) which looks like
when I access the php via the second URL, the PHP_SELF variable still says
¿Is there any way to resolve this?
¿Is there a preferred way to solve this?
tia,
-bill
printf("click here", $PHP_SELF);it is normally at
www.domain.com/foo/self.phpbut I also have a subdomain (which I would prefer to access it through) which looks like
foo.domain.com/self.phpwhen I access the php via the second URL, the PHP_SELF variable still says
foo/self.php, so it tries to open foo.domain.com/foo/self.php, which does not exist,¿Is there any way to resolve this?
¿Is there a preferred way to solve this?
tia,
-bill
