Results 1 to 2 of 2
  1. #1

    How to know the domain name

    Say, a script is accessed from

    $_SERVER['REQUEST_URI'] will give us blablabla/bla.htm

    How do I get the

  2. #2
    Join Date
    Dec 2006
    You should be able to use either $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST']. There is a full list of the available variables online. Something like this is a good example.
    Caro.Net: Support is everything
    Offering High Quality Dedicated Servers.

Posting Permissions

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