That's becasue on IIS the service runs under the IUSR_<machine name> user. If you are running Apache, it defaults to run under a system account. If you want IIS to be able to see more folders on the system, give the IUSR_<machine name> user more rights. If you did something like if (is_dir('C:\Inetpub\wwwroot')) echo "It's a folder";
it should work. - Anthony <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just a few notes about my problem! > It seems that PHP 4 on Windows 2000 with IIS 5.0 all directories of level 1 > (starting from the "root") aren't visible as "directories". > In fact, I have tested some directory-paths with "is_dir" function, with > different paths and PHP is able to recognize only / (root) and paths at more > deep levels. For example: > > /TMP/PHP_SESSIONS is_dir? 1 > /TMP is_dir? > \TMP\PHP_SESSIONS is_dir? 1 > c:/TMP/PHP_SESSIONS is_dir? 1 > c:/TMP is_dir? [NOT RECOGNIZED] > c:\TMP\PHP_SESSIONS is_dir? 1 > c:/ is_dir? 1 > c:/inetpub/ftproot is_dir? 1 > c:/inetpub is_dir? [NOT RECOGNIZED] > > As you can see, all directories are recognized (1) but not those at 1st > level (like /TMP or C:/INETPUB). I don't know if this strange behaviour > regards the specific PHP version used on Win2k or if it's a bug (on > IIS/WinXP all runs well). > > My problem (checking if SESSION_SAVE_PATH directory exists) is now resolved: > simply, I use /TMP/PHP_SESSIONS as path and not only /TMP (as on every other > standard PHP installation). > > Hope this note can help! > > Bye > Francesco > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php