F
Franzl Wisseworst
How can I figure if my DOCUMENT_URI contains a substring, eg.:
if ($ENV{"DOCUMENT_URI"} contains string "mein.totenkopf.de"){
do something...;
}
And is there a way to ignore case, so the substring could be
"mein.totenkopf.de" or "MEIN.TOTENKOPF.DE" for example?
The purpose is to identify if the only the base domain or sub-domain is
being accessed. The reason I'd like to utilise DOCUMENT_URI rather than
REMOTE_HOST or some other domain specific string is because it should work
on a local machine too, where all content is mirorred, but where
REMOTE_HOST is always localhost. This should work in both environments
because the full domain substring exist as a directory name in both cases.
Many thanks for any tips.
if ($ENV{"DOCUMENT_URI"} contains string "mein.totenkopf.de"){
do something...;
}
And is there a way to ignore case, so the substring could be
"mein.totenkopf.de" or "MEIN.TOTENKOPF.DE" for example?
The purpose is to identify if the only the base domain or sub-domain is
being accessed. The reason I'd like to utilise DOCUMENT_URI rather than
REMOTE_HOST or some other domain specific string is because it should work
on a local machine too, where all content is mirorred, but where
REMOTE_HOST is always localhost. This should work in both environments
because the full domain substring exist as a directory name in both cases.
Many thanks for any tips.