|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-19 16:32 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
Description: ------------ A Script running in apache 2.0.55 (installed on drive c:) is trying to check for the existence of a directory; this is located on a raid-system, therefore outside of the webroot. Checking for the existence of the directory with the code below using is_dir always fails, while using opendir in the manner shown works correctly. The same 'is_dir'-script run from the commandline works, so a connection to apache seems to exist, but neither php nor apache have any restrictions in accessing the filesytem(s). Reproduce code: --------------- erroneous: <?php if (is_dir('d:/directory')) { echo 'a'; } else echo 'b'; ?> working: <?php if (opendir('d:/directory')) { echo 'a'; closedir($dh); } else echo 'b'; ?>