Include "http://localhost/..." does not work

Discussion in 'Apache' started by Lubor, May 26, 2007.

  1. #1
    Hallo,

    when I call PHP include "http://localhost/something...", the browser hangs and after 60 sec reports timeout. This happend only with the localhost address.

    Apache 2.2.2, PHP 5.1.4, MySQL 5, Win Vista, IE7+MF.

    Thnak You for any help! Lubor.
     
    Lubor, May 26, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    You can try with http://127.0.0.1/something... instead.

    If that doesnt' work, look at this file:c:/windows/system32/drivers/etc/hosts (or equivalent), and tell us what is on the line with "127.0.0.1" string.
     
    ajsa52, May 26, 2007 IP