<?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 Cannot Access Virtual Directory</title><link>http://forums.iis.net/thread/1878544.aspx</link><pubDate>Fri, 05 Sep 2008 15:14:38 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878544</guid><dc:creator>voidstate</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878544.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1878544</wfw:commentRss><description>&amp;nbsp;I haven&amp;#39;t been able to find anything either there or by Googling.&lt;br /&gt;</description></item><item><title>Re: PHP Cannot Access Virtual Directory</title><link>http://forums.iis.net/thread/1878505.aspx</link><pubDate>Fri, 05 Sep 2008 06:20:04 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878505</guid><dc:creator>HostingASPNet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878505.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1878505</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You could check in &lt;a href="http://php.net/"&gt;http://php.net&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;</description></item><item><title>PHP Cannot Access Virtual Directory</title><link>http://forums.iis.net/thread/1878426.aspx</link><pubDate>Thu, 04 Sep 2008 12:41:09 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1878426</guid><dc:creator>voidstate</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1878426.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1102&amp;PostID=1878426</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi&lt;br /&gt;&lt;br /&gt;I have created a virtual directory in IIS 7. The virtual directory is named &amp;quot;sites&amp;quot; and points to &amp;quot;C:\sites&amp;quot;.&lt;br /&gt;&lt;br /&gt;I want PHP to manipulate the files in this directory but I get the following error message when PHP tries to read it like this:&lt;br /&gt;&lt;br /&gt;echo &amp;#39;&amp;lt;pre&amp;gt;&amp;#39;;&lt;br /&gt;$dir = scandir( &amp;#39;sites&amp;#39; );&lt;br /&gt;print_r( $dir );&lt;br /&gt;echo &amp;#39;&amp;lt;/pre&amp;gt;&amp;#39;;&lt;br /&gt;&lt;br /&gt;PHP Warning: scandir(sites) [function.scandir]: failed to open dir: No error in C:\inetpub\wwwroot\test.php on line 15 PHP Warning: scandir() [function.scandir]: (errno 0): No error in C:\inetpub\wwwroot\test.php on line 15&lt;br /&gt;&lt;br /&gt;But if I use an absolute path it works fine:&lt;br /&gt;&lt;br /&gt;echo &amp;#39;&amp;lt;pre&amp;gt;&amp;#39;;&lt;br /&gt;$dir = scandir( &amp;#39;C:\sites&amp;#39; );&lt;br /&gt;print_r( $dir );&lt;br /&gt;echo &amp;#39;&amp;lt;/pre&amp;gt;&amp;#39;;&lt;br /&gt;&lt;br /&gt;I can also browse to files within the folder using my browser without a problem (]http://mysite/sites/myfile.gif).&lt;br /&gt;&lt;br /&gt;Looking at phpinfo(), there is a line that reads:&lt;br /&gt;&lt;br /&gt;Virtual Directory Support:&amp;nbsp; disabled &lt;br /&gt;&lt;br /&gt;Is that relevant? And if so, where do I change it?&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;</description></item></channel></rss>