Beauford wrote: > ... >>> >>> >>> function searchdir ( $page , $maxdepth = -1 , $mode = >> "FILES" , $d = 0 ) { >>> if ( substr ( $page , strlen ( $page ) - 1 ) != '\\' ) { >> $page .= >>> '\\' ;} >> this if statement will run given the value of $page, it's not >> needed AFAIKT. >> then again I can't see it causing problems. > > This makes no difference. I took it out before and got the same error. > I didn't think it would. ... > So if I put $page = "test", or $page = "test3", or $page = "../" they will > all work. As soon as I add a drive letter, it gives me the error. Even on > the local machine. > > I am trying to access a networked drive, but I have a share on the PC where > the script is. May this is the issue. the mapped drive should not be a problem. I definitely think it's a permission issue, of course I could be wrong. the following bug report *might* give you a clue as to whats going on: http://bugs.php.net/bug.php?id=22153&edit=1 I have a feeling the bit about setting the permissions of the Share to Everyone (on the server) is a good place to start. (the point about having to login to the share manually before php is able to connect is also noteworthy) also bare in mind that a Drive/Directory has a set of permissions that are seperate to the permissions of a Share that is defined for said Drive/Directory, (something that has always confused me a bit) - both need to be setup to appropriately > Is there a way to use a UNC path? things I came across suggests this can work - something like?: $dir = opendir(""\\\\your.ip.add.ress\\your_share""); > ... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php