Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Domain Name

  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Domain Name

    How would I detect the domain name the file is located in?

    so, say I ran domain.php in www.raraken.com, it would have a variable saying "www.raraken.150m.com"

  2. #2
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have no idea what you mean + your link doesn't seem to do anything.

    Can you give a bit more info?
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  3. #3
    Regular Coder
    Join Date
    Jan 2004
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    the url was an example, it doesnt exist.

    But what I'm trying to say is, I'm making a templait for a guy that has about 5 sites.

    Anyway, they all go by "galac____" (ie GalacMail, GalacForums, ect ect). How do I check the site address in php?

  4. #4
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts

    to get the domainname : $_SERVER['HTTP_HOST']
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


 

Posting Permissions

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