Forum Moderators: coopster

Message Too Old, No Replies

is_dir not working

is_dir failing to identify directories on windows

         

cybersphere

10:24 pm on May 17, 2006 (gmt 0)

10+ Year Member



I'm running PHP5 with Apache on Windows XP SP2.

I ran a quick test of the is_dir function, and it is incorrectly returning false when I ask it to identify a directory.

Are there any known issues with my config and is_dir? Any known workarounds?

dreamcatcher

10:40 pm on May 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi cybersphere,

You can also use the file_exists [php.net] function to check if a directory exists. Not sure why is_dir is failing. Are you sure your path is correct?

dc

jatar_k

10:42 pm on May 17, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe take a look through the comments on this page

[php.net...]

some talk about some issues and there may be a workaround ion there somewhere

cybersphere

11:52 pm on May 17, 2006 (gmt 0)

10+ Year Member



Thanks for the responses.

I am running an old version of PHP5 (5.01), which may have something to do with it.

I will see if upgrading to the latest version makes any difference.