SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Obsessive designer Infizi's Avatar
    Join Date
    May 2004
    Location
    North Pole
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $_server['local_addr']???

    Does anyone know how to get the IP of the server the script is running on, like the local address, but the actual ip (translated HTTP_HOST?)

    Any help would be great
    New Design - PHP Slowly flowing in!

    Infizi Studio's

  2. #2
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    $_SERVER["SERVER_ADDR"]

    See also phpinfo

  3. #3
    Obsessive designer Infizi's Avatar
    Join Date
    May 2004
    Location
    North Pole
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that isnt listed in thePHP documentation, is it a new addition to PHP5?
    New Design - PHP Slowly flowing in!

    Infizi Studio's

  4. #4
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SERVER_ADDR is an apache extension to cgi.


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
  •