<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>PHP Community</title><link>http://forums.iis.net/1102.aspx</link><description>A forum for the PHP community running on IIS</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: PHP SERVER("HTTP_HOST") is not working</title><link>http://forums.iis.net/thread/1908665.aspx</link><pubDate>Tue, 30 Jun 2009 00:50:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908665</guid><dc:creator>brashquido</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908665.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1908665</wfw:commentRss><description>&lt;p&gt;A 404 error on a virtual directory is going to most likely be a permissions issue. Make sure your IIS user account has at least read NTFS permissions to the contents of your virtual directory.&lt;/p&gt;</description></item><item><title>Re: PHP SERVER("HTTP_HOST") is not working</title><link>http://forums.iis.net/thread/1908613.aspx</link><pubDate>Mon, 29 Jun 2009 16:45:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908613</guid><dc:creator>kakadia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908613.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1908613</wfw:commentRss><description>&lt;p&gt;thank you so much...it&amp;#39;s finally working..&lt;/p&gt;
&lt;p&gt;but the iis virtual directory, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;404 File or Folder not found error occured....&lt;/p&gt;
&lt;p&gt;&amp;nbsp;any clues on this...i tried to enable virtual directory in php.ini but i can&amp;#39;t find nothing about.it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: PHP SERVER("HTTP_HOST") is not working</title><link>http://forums.iis.net/thread/1908539.aspx</link><pubDate>Mon, 29 Jun 2009 09:53:13 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908539</guid><dc:creator>brashquido</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908539.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1908539</wfw:commentRss><description>&lt;p&gt;You need to turn short tags on in php.ini or change your code to; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;lt;?php echo $_SERVER[&amp;#39;HTTP_HOST&amp;#39;]; ?&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;I know the web platform installer makes it easy, however the downfall with that is you don&amp;#39;t learn anything about how it all hangs together in the back end. I would recommend you do at least some reading on PHP if you are looking to use it extensively on your server. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>PHP SERVER("HTTP_HOST") is not working</title><link>http://forums.iis.net/thread/1908514.aspx</link><pubDate>Mon, 29 Jun 2009 03:58:52 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1908514</guid><dc:creator>kakadia</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1908514.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1908514</wfw:commentRss><description>&lt;p&gt;Mys system info : Server 2008 SP2 IIS7.0&lt;/p&gt;
&lt;p&gt;PHP Version Installed : 5.2.10&lt;/p&gt;
&lt;p&gt;The PHP is installed through Web Platform Installer 2.0&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently hosting a site in my server...and i&amp;#39;m trying to use this code in website...but the code is not excuting...means the server host name is not displaying..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;THE CODE IS: &lt;/p&gt;
&lt;p&gt;&amp;lt;? echo $_SERVER[&amp;#39;HTTP_HOST&amp;#39;]; ?&amp;gt;&lt;/p&gt;
&lt;p&gt;Please let me know if any PHP configuration take place to resolve this problem.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>