View Full Version : Display Subdomain name on page?
benfish
22-09-2007, 10:46 AM
Hey,
I was just wondering if anyone knows a way i can display the <subdomain> part of <subdomain>.domain.tld on my web page as a word.
I searched google and only found a way to get the entire subdomain.domain.tld up there, so i'm sort of hoping you guys can help :)
Thanks,
Benfish
Eccentric
23-09-2007, 09:32 AM
can you explain what you mean please as im a little confused :S
RYANNNNN
23-09-2007, 10:27 AM
$_SERVER['SERVER_NAME'] and regex
benfish
23-09-2007, 01:54 PM
can you explain what you mean please as im a little confused :S
I just want to display the subdomain name on the page, so just the name of the subdomain without the .domain.com or whatever.
$_SERVER['SERVER_NAME'] and regex
That's php, right? I dont know php :( could you tell me how to add it to the page?
Recursion
23-09-2007, 02:01 PM
You mean like that site where you put things like
www.benfish.justgotowned.com etc... ?
Eccentric
23-09-2007, 02:19 PM
oh i see, hmmm ive seen it on some site before ummm damn where was it ill look about.
benfish
23-09-2007, 02:48 PM
You mean like that site where you put things like
www.benfish.justgotowned.com (http://www.benfish.justgotowned.com) etc... ?
In a way, yes, but i just want the subdomain name as a word on the page :)
Eccentric
23-09-2007, 02:50 PM
Ye i think it was php<3 as i remember <? ?> lol
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.