ID: 45535 Comment by: carsten_sttgt at gmx dot de Reported By: trikhoi at yahoo dot com Status: Feedback Bug Type: Directory function related Operating System: WindowXP SP2 PHP Version: 5.2.6 New Comment:
> I can not access network drive by opendir() function. For network shares you should use UNC names: "//server/share/dir/file.ext" The PHP process must also have enough rights to this share: e.g. with PHP-CGI or mod_php in Apache, the Apache service must have enough rights (the nomal "local service" account don't have this rights). Previous Comments: ------------------------------------------------------------------------ [2008-07-17 01:30:24] [EMAIL PROTECTED] Turn on error display and level to E_ALL to see what the actual error is.. ------------------------------------------------------------------------ [2008-07-17 01:24:09] trikhoi at yahoo dot com Description: ------------ I can not access network drive by opendir() function. I've adjusted pemission D:\share for everyone can access it. I've also tried to opendir("\\\\k:\\"), but the result is false. With K: is network drive I've created and map to "D:\share" folder in my computer. Please give me some instruction to solve this problem Thanks in advance! My code look like: Reproduce code: --------------- $fh = opendir("k:\"); if($fh == false) { print("can not open directory!"); } else { print("Openning directory successful!"); } Expected result: ---------------- Openning directory successful! Actual result: -------------- can not open directory! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45535&edit=1