« Previous Next »

Thread: PHP SERVER("HTTP_HOST") is not working

Last post 06-29-2009 9:10 AM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-28-2009, 11:59 PM

    • kakadia
    • Not Ranked
    • Joined on 06-29-2009, 3:30 AM
    • NJ
    • Posts 8

    PHP SERVER("HTTP_HOST") is not working

    Mys system info : Server 2008 SP2 IIS7.0

    PHP Version Installed : 5.2.10

    The PHP is installed through Web Platform Installer 2.0

    I'm currently hosting a site in my server...and i'm trying to use this code in website...but the code is not excuting...means the server host name is not displaying..

     THE CODE IS:

    <? echo $_SERVER['HTTP_HOST']; ?>

    Please let me know if any PHP configuration take place to resolve this problem.

     

  • 06-29-2009, 9:10 AM In reply to

    Re: PHP SERVER("HTTP_HOST") is not working

    Test with a Hello World! app.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Microsoft Communities