SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: PHP domain

  1. #1
    SitePoint Zealot
    Join Date
    May 2001
    Location
    UK
    Posts
    184
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP domain

    Ok, the aim is to have
    Welcome to thisdomain.com, the thing is that is going be put on multiple domains. I belive there is one variable in PHP which contains the domain, however I've forgotted name. If somebody could provide I'd be eternaliy gratefull

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $HTTP_HOST

    The easiest way to look up variables like this is to view a PHP Info file - create a PHP file that looks like this and save it on your server:
    PHP Code:
    <?php
    phpinfo
    ();
    ?>
    Accessing that with your browser will bring up loads of information, including all of the environment variables (including stuff like HTTP_HOST).


Bookmarks

Posting Permissions

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