#25805 [Opn->Bgs]: Problem Accessing Network Shares
| From: | sniper@php.net | Date: | Sun, 12 Oct 2003 04:27:37 +0000 |
| Subject: | #25805 [Opn->Bgs]: Problem Accessing Network Shares | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48859@lists.php.net to get a copy of this message | ||
ID: 25805
Updated by: sniper@php.net
Reported By: mattj at exitcare dot com
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Windows 2003 Web Server
PHP Version: 4.3.3
New Comment:
Not enough information, assuming this is run under IIS where
this document applies:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q189408
Previous Comments:
------------------------------------------------------------------------
[2003-10-10 13:41:45] mattj at exitcare dot com
I redid the share to be called 'fdrive'.
Then updated my script accordingly:
<?php
$dir1 = "\\\\matt\\fdrive\\";
$dir2 = "\\\\192.168.0.6\\fdrive\\";
$dir3 = "//matt/fdrive/";
$dir4 = "//192.168.0.6/fdrive/";
opendir($dir1);
opendir($dir2);
opendir($dir3);
opendir($dir4);
?>
But I still get:
Warning: opendir(\\matt\fdrive\): failed to open dir: Invalid argument
in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 6
Warning: opendir(\\192.168.0.6\fdrive\): failed to open dir: Invalid
argument in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 7
Warning: opendir(//matt/fdrive/): failed to open dir: Invalid argument
in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 8
Warning: opendir(//192.168.0.6/fdrive/): failed to open dir: Invalid
argument in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 9
------------------------------------------------------------------------
[2003-10-10 11:39:33] sniper@php.net
Try renaming those shares not to have that space in them,
for example 'F Drive' -> 'F_Drive'..
------------------------------------------------------------------------
[2003-10-10 09:17:42] mattj at exitcare dot com
It is not security.
I went to the Sharing tab and clicked the Perissions button for the F
Drive Share. I gave Everyone full control. I also went to the Security
tab and set Everyone to full control. Applied the changes, reran the
script. Exact same result.
------------------------------------------------------------------------
[2003-10-10 07:03:46] sniper@php.net
"To anyone who needs to use UNC mapped drives with
OpenDir(), if you are having a problem with OpenDir() reading
the directory, check your permissions for the share on the
host machine. Start with giving full permission to everyone
(which should work fine) and then back accessability until you
have a problem."
from bug #22153
------------------------------------------------------------------------
[2003-10-09 13:04:54] mattj at exitcare dot com
Looks like it yields the same results.
<?php
$dir1 = "\\\\matt\\F Drive\\";
$dir2 = "\\\\192.168.0.6\\F Drive\\";
$dir3 = "//matt/F Drive/";
$dir4 = "//192.168.0.6/F Drive/";
opendir($dir1);
opendir($dir2);
opendir($dir3);
opendir($dir4);
?>
Warning: opendir(\\matt\F Drive\): failed to open dir: Invalid argument
in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 6
Warning: opendir(\\192.168.0.6\F Drive\): failed to open dir: Invalid
argument in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 7
Warning: opendir(//matt/F Drive/): failed to open dir: Invalid argument
in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 8
Warning: opendir(//192.168.0.6/F Drive/): failed to open dir: Invalid
argument in C:\Inetpub\wwwroot\ExitCareWeb\test.php on line 9
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/25805
--
Edit this bug report at http://bugs.php.net/?id=25805&edit=1