Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2006
    Posts
    31
    Tokens
    0

    Default Display Subdomain name on page?

    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

  2. #2
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    can you explain what you mean please as im a little confused :S

  3. #3
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    $_SERVER['SERVER_NAME'] and regex

  4. #4
    Join Date
    Dec 2006
    Posts
    31
    Tokens
    0

    Default

    Quote Originally Posted by Eccentric View Post
    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.

    Quote Originally Posted by RYANNNNN View Post
    $_SERVER['SERVER_NAME'] and regex
    That's php, right? I dont know php could you tell me how to add it to the page?

  5. #5
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    You mean like that site where you put things like

    www.benfish.justgotowned.com etc... ?
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  6. #6
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    oh i see, hmmm ive seen it on some site before ummm damn where was it ill look about.

  7. #7
    Join Date
    Dec 2006
    Posts
    31
    Tokens
    0

    Default

    Quote Originally Posted by Jaffa Cakes! View Post
    You mean like that site where you put things like

    www.benfish.justgotowned.com etc... ?
    In a way, yes, but i just want the subdomain name as a word on the page

  8. #8
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    Ye i think it was php as i remember <? ?> lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •